return list(mapping, form, request, response);
}
@Atomic
private void createDepartment(AssociatedObjectsBean bean) {
Department department = new Department();
department.setCompetenceCourseMembersGroup(RoleType.MANAGER.actualGroup());
department.setActive(bean.isActive());
department.setCode(bean.getCode());
department.setName(bean.getName());
department.setRealName(bean.getRealName());
department.setName(bean.getName());
department.setRealNameEn(bean.getRealNameEn());
department.setRootDomainObject(Bennu.getInstance());
DepartmentUnit.createNewInternalDepartmentUnit(department.getNameI18n(), null, null, department.getCode(),
new YearMonthDay(), null, Bennu.getInstance().getInstitutionUnit().getSubUnits().stream()
.filter(x -> ((AggregateUnit) x).getName().equals("Departments")).findAny()
.orElse(Bennu.getInstance().getInstitutionUnit()),
AccountabilityType.readByType(AccountabilityTypeEnum.ACADEMIC_STRUCTURE), null, department, null, false, null);