final Unit employeeWorkingPlace = employee.getCurrentWorkingPlace(); for (final AdministrativeOffice administrativeOffice : RootDomainObject.getInstance() .getAdministrativeOffices()) { if (administrativeOffice.getUnit() == employeeWorkingPlace) { return administrativeOffice;
if (employee.getCurrentWorkingPlace().hasAdministrativeOffice()) { return employee.getCurrentWorkingPlace().getAdministrativeOffice(); }  for (Accountability accountability : employee.getCurrentWorkingPlace() .getParentAccountabilities(AccountabilityTypeEnum.ADMINISTRATIVE_STRUCTURE, Unit.class)) { if (((Unit) accountability.getParentParty()).hasAdministrativeOffice()) { return ((Unit) accountability.getParentParty()).getAdministrativeOffice();
    public static AdministrativeOffice readByEmployee(Employee employee) {	final Unit employeeWorkingPlace = employee.getCurrentWorkingPlace();	for (final AdministrativeOffice administrativeOffice : RootDomainObject.getInstance()		.getAdministrativeOffices()) {	    if (administrativeOffice.getUnit() == employeeWorkingPlace) {		return administrativeOffice;	    }	}	return null;    }