if(GLMDebug.printDebug()) GLMDebug.DEBUG("InventoryBG()", cluster, "getFirstOverflow(), OVERFLOW on "+ (TimeUtils.dateString(convertDayToTime(i)))); return new Integer(i);
if (logger.isDebugEnabled()) { logger.debug("getFirstOverflow(), OVERFLOW on " + (TimeUtils.dateString(convertDayToTime(i)))); } return new Integer(i);
  public Integer getFirstOverflow(int i, MessageAddress cluster) {    if (level_ == null)      determineInventoryLevels();    int size = level_.length;    double capacity = getDouble(myPG_.getCapacity());    Integer day = null;    if ((i > size) || (i < 0))      return null;    for (; i < size; i++) {      //  	    if(GLMDebug.printDebug()) GLMDebug.DEBUG("InventoryBG()", cluster, "getFirstOverflow(), checking for overflow on "+      //  			   (TimeUtils.dateString(TimeUtils.addNDays(getStartTime(), i)))+" Level: "+level_[i]+" capacity: "+capacity);      if (Math.floor(level_[i] - capacity) > 1.0) {	//Put in printDebug statement because you put together the	// strings whether you print them or not which can get	// costly performance wise.	if(GLMDebug.printDebug()) GLMDebug.DEBUG("InventoryBG()", cluster, "getFirstOverflow(), OVERFLOW on "+						 (TimeUtils.dateString(convertDayToTime(i))));	return new Integer(i);      }    }    return null;  }