GLMDebug.ERROR("InventoryBG", "UpdateContentSchedule(),  CREATED BAD SCHEDULE ");
if (logger.isErrorEnabled()) { logger.error("UpdateContentSchedule(),  CREATED BAD SCHEDULE "); }
  public int clearContentSchedule(Inventory inventory) {    if (!isStartTimeSet) return -1;    ScheduledContentPG scp = inventory.getScheduledContentPG();    Schedule sched = scp.getSchedule();    QuantityScheduleElement qse;    Vector new_elements = new Vector();    long start = TimeUtils.addNDaysTime(getStartTime(), 0);    long end = TimeUtils.addNDaysTime(getStartTime(), 30);	    qse = ScheduleUtils.buildQuantityScheduleElement(getDouble(myPG_.getInitialLevel()), start, end);    new_elements.add(qse);    Schedule new_schedule = GLMFactory.newQuantitySchedule(new_elements.elements(), 							   PlanScheduleType.TOTAL_INVENTORY);    if (ScheduleUtils.isOffendingSchedule(new_schedule)) {      GLMDebug.ERROR("InventoryBG", "UpdateContentSchedule(),  CREATED BAD SCHEDULE ");      printQuantityScheduleTimes(new_schedule);    }    ((NewScheduledContentPG)scp).setSchedule(new_schedule);    return 0;   }