docTypeName = ((DocumentFormBase) sessionForm).getDocTypeName();
log.debug("retrieved doc type name from session form");
}
}
if (docTypeName == null) {
throw new RiceRuntimeException("expected parameter " + KRADConstants.DOCUMENT_TYPE_NAME + " for use in form.setDocTypeName()");
} else {
form.setDocTypeName(docTypeName);
}
return form;