String query = null;
  private Map getRecipeNamesFromDatabase() {    Map recipes = new TreeMap();    try {      Connection conn = DBUtils.getConnection();      Statement stmt = conn.createStatement();      Map substitutions = new HashMap();      String query = DBUtils.getQuery("queryLibRecipes", substitutions);      ResultSet rs = stmt.executeQuery(query);      while(rs.next()) {        recipes.put(rs.getString(2), rs.getString(1));      }      rs.close();      stmt.close();      conn.close();       } catch (SQLException se) {      System.err.println("Caught SQL exception: " + se);      se.printStackTrace();    }            return recipes;  }