String methodName = "tryAssignment";
synchronized(nodeMap) {
if(duccWorkReservation != null) {
if(duccWorkReservation.isDispatchable()) {
if(!duccWorkReservation.getReservationMap().isEmpty()) {
IDuccReservationMap map = duccWorkReservation.getReservationMap();
if(!map.isEmpty()) {
keyList = new ArrayList<String>();
nodeMap = new TreeMap<String,NodeIdentity>();
for (DuccId key : map.keySet()) {
IDuccReservation value = duccWorkReservation.getReservationMap().get(key);
NodeIdentity node = value.getNodeIdentity();
addNode(node);
logger.info(methodName, null, messages.fetchLabel("assigned")+node.getName()+" "+node.getIp());
}