if (retVal == true && logger.isDebugEnabled() && debugAgent()) {
if (retVal == true && logger.isInfoEnabled() && debugAgent()) {
  private boolean inTheGap(long leftEdge, long leadTime, Task task) {    boolean retVal = false;    long rightEdge = inventoryPlugin.getCurrentTimeMillis() + leadTime;    // current time + clt - lastest end time    long gap = rightEdge - leftEdge;    rightEdge = leftEdge + gap * 4;    long endTime = taskUtils.getEndTime(task);    retVal = endTime > leftEdge && endTime < rightEdge;    if (retVal == true && logger.isDebugEnabled() && debugAgent()) {      if (isPrediction(task))        logger.debug(" Prediction ");      logger.debug(inventoryPlugin.getSupplyType() + " - task in the GAP:  end time is " + new Date(endTime)                   + printTheGap(task));    }    return  retVal;  }