String docTypeName = request.getParameter(KRADConstants.DOCUMENT_TYPE_NAME);
if (docTypeName == null) {
// lookups supply the form key
UifFormManager uifFormManager = (UifFormManager) request.getSession().getAttribute(UifParameters.FORM_MANAGER);
if (uifFormManager != null && request.getParameter(UifParameters.FORM_KEY) != null) {
UifFormBase sessionForm = uifFormManager.getSessionForm(request.getParameter(UifParameters.FORM_KEY));
docTypeName = ((DocumentFormBase) sessionForm).getDocTypeName();
log.debug("retrieved doc type name from session form");
}
}
if (docTypeName == null) {