calc jaxrs modified