updated jaxrs to read models from response, return values