logger.isErrorEnabled()) { logger.error("The following task has already been mapped: " + level6Task + " It ovelaps two different level 2 tasks.");
logger.isWarnEnabled()) {  logger.warn("The following task has already been mapped: " + level6Task.getUID() + " startTime: " + new Date(l6StartTime) + " endTime: " + new Date(l6EndTime) + ".  And the new overlapping L2 Task startTime " + new Date(l2StartTime) + " and endTime is:" + new Date(l2EndTime));
  private void mapLevel2ToLevel6(Collection level2s, Collection level6s) {    //alreadyMapped is only here to print out the error below.   If this is    // a nominal case take already Mapped and the error out.  MWD.    HashSet alreadyMapped = new HashSet();    level2To6Map.clear();    Iterator level2It = level2s.iterator();    while (level2It.hasNext()) {      Task level2Task = (Task) level2It.next();      long l2StartTime = getTaskUtils().getStartTime(level2Task);      long l2EndTime = getTaskUtils().getEndTime(level2Task);      Object l2Cust = getTaskUtils().getCustomer(level2Task);      Iterator level6It = level6s.iterator();      ArrayList mappedL6s = new ArrayList();      while (level6It.hasNext()) {        Task level6Task = (Task) level6It.next();        long l6StartTime = getTaskUtils().getStartTime(level6Task);        long l6EndTime = getTaskUtils().getEndTime(level6Task);        Object l6Cust = getTaskUtils().getCustomer(level2Task);        if ((l6StartTime < l2EndTime) ||            (l6EndTime > l2StartTime)) {          if (l2Cust.equals(l6Cust)) {            mappedL6s.add(level6Task);            if ((alreadyMapped.contains(level6Task)) &&                logger.isErrorEnabled()) {              logger.error("The following task has already been mapped: " + level6Task +                           " It ovelaps two different level 2 tasks.");            } else {              alreadyMapped.add(level6Task);            }          } else {            logger.error("Unexpected Customer of level2Task " + l2Cust + " differs from level6 cust:" + l6Cust);          }        }      }      level2To6Map.put(level2Task, mappedL6s);    }  }