178179180181182183184185186187188
if(!success){ throw new InternalServerErrorException(); } ModelResponse entity = createModelResponse(id, evaluator); if(oldEvaluator != null){ return (Response.ok().entity(entity)).build(); } else
580581582583584585586587588589
return response; } static private ModelResponse createModelResponse(String id, ModelEvaluator<?> evaluator){ ModelResponse response = new ModelResponse(id); response.setSummary(evaluator.getSummary()); return response; }