logger.error("BucketSize-" + ex.toString());
if (logger.isErrorEnabled()) { logger.error("BucketSize-" + ex.toString()); }
  public InventoryPolicy() {    dateFormatter = new SimpleDateFormat("MM/dd/yyyy HH:mm");    dateFormatter.setTimeZone(TimeZone.getTimeZone("GMT"));    logger = Logging.getLogger(this);    StringRuleParameter id = new StringRuleParameter(AgentID);    String exception;    try {      id.setValue(new String());    } catch (RuleParameterIllegalValueException ex) {      logger.error(ex.toString());      // Print exception, waiting for a static logger    }    Add(id);    StringRuleParameter type = new StringRuleParameter(ResourceType);    try {      type.setValue(new String());    } catch (RuleParameterIllegalValueException ex) {      logger.error("ResourceType-" + ex.toString());      // Print exception, waiting for a static logger    }    Add(type);        StringRuleParameter arrivalDate = new StringRuleParameter(SupplierArrivalTime);    try {      arrivalDate.setValue(null);    } catch (RuleParameterIllegalValueException ex) {      logger.debug("SupplierArrivalTime-" + ex.toString());      // Print exception, waiting for a static logger    }    Add(arrivalDate);    StringRuleParameter specifier = new StringRuleParameter(InventoryManagerSpecifier);    try {      type.setValue(new String());    } catch (RuleParameterIllegalValueException ex) {      logger.error("InventoryManagerSpecifier-" + ex.toString());      // Print exception, waiting for a static logger    }    Add(specifier);    IntegerRuleParameter cl = new IntegerRuleParameter(CriticalLevel, 1, 40);    try {      cl.setValue(new Integer(3));    } catch (RuleParameterIllegalValueException ex) {      logger.error("CriticalLevel-" + ex.toString());      // Print exception, waiting for a static logger    }    Add(cl);    IntegerRuleParameter st = new IntegerRuleParameter(SupplierAdvanceNoticeTime, 1, 100);    try {      st.setValue(new Integer(1));    } catch (RuleParameterIllegalValueException ex) {      logger.error("SupplierAdvanceNoticeTime-" + ex.toString());      // Print exception, waiting for a static logger    }    Add(st);    IntegerRuleParameter of = new IntegerRuleParameter(ReorderPeriod, 1, 40);    try {      of.setValue(new Integer(3));    } catch (RuleParameterIllegalValueException ex) {      logger.error("ReorderPeriod-" + ex.toString());      // Print exception, waiting for a static logger    }    Add(of);    IntegerRuleParameter ht = new IntegerRuleParameter(HandlingTime, 0, 40);    try {      ht.setValue(new Integer(0));    } catch (RuleParameterIllegalValueException ex) {      logger.error("HandlingTime-" + ex.toString());      // Print exception, waiting for a static logger    }    Add(ht);    IntegerRuleParameter tt = new IntegerRuleParameter(TransportTime, 1, 40);    try {      tt.setValue(new Integer(3));    } catch (RuleParameterIllegalValueException ex) {      logger.error("TransportTime-" + ex.toString());      // Print exception, waiting for a static logger    }    Add(tt);    IntegerRuleParameter ost = new IntegerRuleParameter(OrderShipTime, 1, 40);    try {      ost.setValue(new Integer(3));    } catch (RuleParameterIllegalValueException ex) {      logger.error("OrderShipTime-" + ex.toString());      // Print exception, waiting for a static logger    }    Add(ost);    LongRuleParameter bucket = new LongRuleParameter(BucketSize, TimeUtils.MSEC_PER_HOUR, Long.MAX_VALUE);    try {      bucket.setValue(new Long(TimeUtils.MSEC_PER_DAY));    } catch (RuleParameterIllegalValueException ex) {      logger.error("BucketSize-" + ex.toString());    }    Add(bucket);    BooleanRuleParameter fillToCap = new BooleanRuleParameter(FillToCapacity, false);    try {      fillToCap.setValue(new Boolean(false));    } catch (RuleParameterIllegalValueException ex) {      logger.error("FillToCapacity-" + ex.toString());    }    Add(fillToCap);  }