}
@Override
void resolve() throws Exception {
final AnnotationWebScriptRequest request = getRequest();
final AnnotationWebscriptResponse response = getResponse();
final ResolutionParameters params = getParams();
if (StringUtils.hasText(request.getFormat()) == false) {
response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
response.getWriter().write("No format specified.");
return;
}
populateTemplateModel(model, request, params);
int status = response.getStatus() != null ? response.getStatus() : 200;
processTemplate(request, model, status, response, params);
}