}
public ActionForward create(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) throws FenixServiceException {
final DocumentRequestCreateBean documentRequestCreateBean = getRenderedObject();
final Registration registration = documentRequestCreateBean.getRegistration();
request.setAttribute("registration", registration);
DocumentRequest documentRequest = null;
try {
documentRequest = (DocumentRequest) executeFactoryMethod();
} catch (DomainException ex) {
addActionMessage(request, ex.getKey(), ex.getArgs());
return mapping.findForward("viewRegistrationDetails");
} catch (ConsistencyException ce) {
addActionMessage(request, "error." + ce.getMethodFullname());
return mapping.findForward("viewRegistrationDetails");
}
if (documentRequestCreateBean.getChosenDocumentRequestType().isAllowedToQuickDeliver()) {
request.setAttribute("academicServiceRequestId", documentRequest.getExternalId());
return mapping.findForward("processNewAcademicServiceRequest");
} else {
addActionMessage(request, "document.request.created.with.success");
return mapping.findForward("viewRegistrationDetails");