public Map<String, Department> getDepartment(Collection<String> domains) {
Map<String, Department> result = new TreeMap<String, Department>();
for (String domain : domains) {
Project project = findProject(domain);
String department = DEFAULT;
String projectLine = DEFAULT;
if (project != null) {
department = project.getBu() == null ? DEFAULT : project.getBu();
projectLine = project.getCmdbProductline() == null ? DEFAULT : project.getCmdbProductline();
}
Department temp = result.get(department);
if (temp == null) {
temp = new Department();