private void replaceCommitteeReason(DirectoryEntity entityWhat, DirectoryEntity entityWith) {
//Direction
List entityList = findEntityList(Direction.class, "committeeReason", entityWhat);
for (int i = 0; i < entityList.size(); i++) {
Direction d = (Direction) entityList.get(i);
d.setCommitteeReason((CommitteeReason) entityWith);
manager.merge(d);
}
removeEntity(entityWhat);
manager.flush();
}