room.setBuilding((Building) sourceData);
((Building) sourceData).getRooms().add(room);
}
} else if (ENTITYSET_1_4.equals(targetEntitySet.getName())) {
final Manager manager = (Manager) readData(targetEntitySet, targetKeys);
if (((Employee) sourceData).getManager() != null) {
((Employee) sourceData).getManager().getEmployees().remove(sourceData);
}
((Employee) sourceData).setManager(manager);
manager.getEmployees().add((Employee) sourceData);
} else if (ENTITYSET_1_5.equals(targetEntitySet.getName())) {
final Building building = (Building) readData(targetEntitySet, targetKeys);
if (((Room) sourceData).getBuilding() != null) {
((Room) sourceData).getBuilding().getRooms().remove(sourceData);