private BufferedRows getConfInternal(boolean call) {
    Statement stmnt = null;
    BufferedRows rows = null;
    ResultSet rs = null;
    try {
      boolean hasResults = false;
      DatabaseConnection dbconn = beeLine.getDatabaseConnection();
      Connection conn = null;
      if (dbconn != null)
        conn = dbconn.getConnection();
      if (conn != null) {
        if (call) {
          stmnt = conn.prepareCall("set");
          hasResults = ((CallableStatement) stmnt).execute();
        } else {
          stmnt = beeLine.createStatement();
          hasResults = stmnt.execute("set");
        }
      }
      if (hasResults) {
        rs = stmnt.getResultSet();
        rows = new BufferedRows(beeLine, rs);
      }
    } catch (SQLException e) {
      beeLine.error(e);
    } finally {
      if (rs != null) {
        try {
          rs.close();
        } catch (SQLException e1) {
          beeLine.error(e1);
        }
      }
      if (stmnt != null) {
        try {
          stmnt.close();
        } catch (SQLException e2) {
          beeLine.error(e2);
        }
      }
    }
    return rows;
  }
Use call statement to retrieve the configurations for substitution and sql for the substitution.

@param call
@return
beeline/src/java/org/apache/hive/beeline/Commands.java