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