if (supplyType == null)
if (supplyType == null && logger.isErrorEnabled()) {
  private HashMap readParameters() {    final String errorString = "InventoryPlugin requires 1 parameter, Supply Type.  Additional parameter for csv logging, default is disabled.   e.g. org.cougaar.logistics.plugin.inventory.InventoryPlugin("+SUPPLY_TYPE+"=BulkPOL, ENABLE_CSV_LOGGING=true);";    Collection p = getParameters();        if (p.isEmpty()) {      logger.error(errorString);      return null;    }    HashMap map = new HashMap();    int idx;     for (Iterator i = p.iterator();i.hasNext();) {      String s = (String)i.next();      if ((idx=s.indexOf('=')) != -1) {	String key = new String(s.substring(0, idx));	String value = new String(s.substring(idx+1, s.length()));	map.put(key.trim(), value.trim());      }    }    supplyType = (String)map.get(SUPPLY_TYPE);//      inventoryFile = (String)map.get(INVENTORY_FILE);    if (supplyType == null)      logger.error(errorString);    String loggingEnabled = (String)map.get(ENABLE_CSV_LOGGING);    if((loggingEnabled != null) &&       (loggingEnabled.trim().equals("true"))) {	logToCSV = true;    }    return map;  }