private boolean isComplexRecipe(Connection conn, Map substitutions) {
private boolean isComplexRecipe(String desc) {
  private boolean isComplexRecipe(Connection conn, Map substitutions) {    boolean retVal = false;    try {      Statement stmt = conn.createStatement();      try {        String query = DBUtils.getQuery("queryRecipeProperties", substitutions);        ResultSet rs = stmt.executeQuery(query);                // Relys on the fact that a complex recipe will only have 1 parameter        // in the Recipe Args table.        if(rs.next()) {          if(rs.getString(1).equalsIgnoreCase(ComplexRecipeBase.ASSEMBLY_PROP)) {            retVal = true;          }        }          rs.close();          stmt.close();      } catch(SQLException sqle) {        if(log.isErrorEnabled()) {          log.error("SQLException checking recipe type", sqle);        }      }    } catch (SQLException sqe) {      if(log.isErrorEnabled()) {        log.error("SQLException checking recipe type", sqe);      }    }    return retVal;  }