logger.error("doQuery(), query string from file is null");
if (logger.isErrorEnabled()) { logger.error("doQuery(), query string from file is null"); }
  protected String getNomenclature (String type_id, String type) {    String item_id = type_id.substring(type_id.indexOf("/")+1);  // The NSN    String query = substituteNSN((String)fileParameters_.get("ClassIData"), item_id, ":nsns");    if (query == null) {      logger.error("doQuery(), query string from file is null");       return null;    }     Vector result;    try {      result = executeQuery(query);    } catch (Exception ee) {      logger.error("doQuery(), DB query failed. query= "+ query+ "\n"+ee.toString());      return null;    }          if (result.isEmpty()) {      return null;    } // if    // parse results    Object row[] = (Object[])result.firstElement();    String nomen = (String)row[0];    if (nomen == null) {      return null;    } // if    String meal_type = (String)row[1];    int rotation_day = intValue(row[3]);    // Optimize this later.    if (meal_type == null ) {      meal_type = "";    } // if    nomen = nomen+" "+meal_type+" ";    if (rotation_day > 0) {      nomen += rotation_day;    } // if    Vector pgs = null;    pgs = parseSubsistence(row, type_id, type);    if (pgs != null) {      propertyGroupTable_.put(type_id, pgs);    } // if    logger.debug ("getNomenclature() returning " + nomen);    return nomen;  } // getNomenclature