response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e.getMessage());
}
}
protected FormDefinitionService createFormService(HttpServletRequest request, String usr, String pwd) {
GuvnorFormDefinitionService service = (GuvnorFormDefinitionService) WebApplicationContextUtils.
getWebApplicationContext(request.getSession().getServletContext()).getBean("guvnorFormService");
if (usr != null && pwd != null) {
service.setUser(usr);
service.setPassword(pwd);
try {
service.afterPropertiesSet();
} catch (Exception e) { }
}
return service;
}