protected void populateForm(DocumentConfigurationViewForm form) { if (StringUtils.isNotEmpty(form.getDocumentTypeName())) { form.setDocumentType(getDocumentTypeService().findByName(form.getDocumentTypeName())); if (form.getDocumentType() != null) { form.getDocumentType().getChildrenDocTypes(); form.setAttributeLabels(new HashMap<String, String>()); populateRelatedDocuments(form); populatePermissions(form); populateRoutingResponsibilities(form); populateRoutingExceptionResponsibility(form); checkPermissions(form); } } }