if (retVal == true && logger.isDebugEnabled() && debugAgent()) {
if (retVal == true && logger.isInfoEnabled() && debugAgent()) {
  private boolean beforeTheGap(Task task, long lastEndTime) {    long endTime = taskUtils.getEndTime(task);    boolean retVal = false;    retVal = endTime < lastEndTime;    if (retVal == true && logger.isDebugEnabled() && debugAgent()) {      if (isPrediction(task))        logger.error(" Prediction ");      logger.error(inventoryPlugin.getSupplyType() + " - task has end date before the GAP: " + new Date(endTime));    }    return retVal;  }