String query = DBUtils.getQuery("queryRecipes", substitutions);
query = DBUtils.getQuery("queryRecipes", substitutions);
  private List checkForRecipes(String trialId, String exptId) {    List recipeList = new ArrayList();    try {      Connection conn = DBUtils.getConnection();      Map substitutions = new HashMap();      substitutions.put(":trial_id", trialId);      substitutions.put(":expt_id", exptId);      Statement stmt = conn.createStatement();      String query = DBUtils.getQuery("queryRecipes", substitutions);      ResultSet rs = stmt.executeQuery(query);      while(rs.next()) {        try {          DbRecipe dbRecipe = new DbRecipe(rs.getString(2), Class.forName(rs.getString(3)));          String recipeId = rs.getString(1);          substitutions.put(":recipe_id", recipeId);          getRecipeProperties(dbRecipe, conn, substitutions);          recipeList.add(dbRecipe);        } catch (ClassNotFoundException cnfe) {          System.err.println(cnfe + ": for recipe");        }      }      rs.close();      stmt.close();      conn.close();       } catch (SQLException se) {      System.err.println("Caught SQL exception: " + se);      se.printStackTrace();    }            return recipeList;  }