String str =" DB query failed. query= "+ query+ "\n ERROR "+ee.toString(); logger.debug (" getSupplementalList(),"+str);
if (logger.isDebugEnabled()) { String str =" DB query failed. query= "+ query+ "\n ERROR "+ee.toString(); logger.debug (" getSupplementalList(),"+str); }
  public Vector generateRationList() {    Vector list = new Vector();    String query = (String)fileParameters_.get("Class1ConsumedList");    if (query == null) { // if query not found, return null      logger.debug ("generaterationList(),  query is null");      return null;    }    Vector holdsQueryResult;    try {      holdsQueryResult = executeQuery(query);      if (holdsQueryResult.isEmpty()){	return null;      }    } catch (Exception ee) {      String str =" DB query failed. query= "+ query+ "\n ERROR "+ee.toString();      logger.debug (" getSupplementalList(),"+str);      return null;    }    String  typeIDPrefix = "NSN/";    PlanningFactory ldm = getLDM().getFactory();    for(int i = 0; i < holdsQueryResult.size(); i++){      Object[]  row = ( (Object[])holdsQueryResult.elementAt(i));      Asset ration = ldm.getPrototype(typeIDPrefix + (String)row[0]);      if (ration != null) {	list.addElement(ration);      } else {	logger.error (" Asset prototype is null");      } // if    } // for    return list;  }