logger.debug ("in checkMeiConsumption() query complete for asset "+
if (logger.isDebugEnabled()) logger.debug ("in checkMeiConsumption() query complete for asset "+
  protected  boolean[] checkMeiConsumption(Asset asset) {    // The default is that the MEI consumes all 4 classes.    // This prevents problems if the table hasn't been updated for    // a new MEI.    boolean result[] = {true, true, true, true };    if (asset instanceof Level2MEIAsset) {      return checkLevel2MeiConsumption();    }    String type_id = asset.getTypeIdentificationPG().getTypeIdentification();    String query = (String) fileParameters_.get ("MeiConsumption");    String consumer_id = type_id.substring(type_id.indexOf("/")+1);    query = substituteNSN (query, consumer_id);    Vector qresult;    try {      qresult = executeQuery (query);      logger.debug ("in checkMeiConsumption() query complete for asset "+                    asset.getTypeIdentificationPG().getNomenclature()+                    "\nquery= "+query);      if (qresult.isEmpty()) {        logger.debug ("no result for asset " +                      asset.getTypeIdentificationPG().getNomenclature());      } else {        Object row[] = (Object[])qresult.firstElement();        result[AMMO]=convertConsumptionElement(row[AMMO]);        result[PKG_POL]=convertConsumptionElement(row[PKG_POL]);        result[SPARES]=convertConsumptionElement(row[SPARES]);        result[FUEL]=convertConsumptionElement(row[FUEL]);      } // if else    } catch (Exception ee) {      logger.error ( "in checkMeiConsumption(), DB query failed.Query= "+query);    } // try    return result;  }