code: private static String readScript(EncodedResource resource, String commentPrefix, String separator)
              throws IOException {
  
          LineNumberReader lnr = new LineNumberReader(resource.getReader());
          try {
              return readScript(lnr, commentPrefix, separator);
          } finally {
              lnr.close();
          }
      }
docs: Read a script from the provided resource, using the supplied comment
  prefix and statement separator, and build a {@code String} containing the
  lines.
  <p>
  Lines <em>beginning</em> with the comment prefix are excluded from the
  results; however, line comments anywhere else &mdash; for example, within
  a statement &mdash; will be included in the results.
  
  @param resource      the {@code EncodedResource} containing the script to be
  processed
  @param commentPrefix the prefix that identifies comments in the SQL script &mdash;
  typically "--"
  @param separator     the statement separator in the SQL script &mdash; typically
  ";"
  @return a {@code String} containing the script lines
  @throws IOException in case of I/O errors