code: public void loadRefasterJsTemplate(String refasterjsTemplate) throws IOException  {
      checkState(
          templateJs == null, "Can't load RefasterJs template since a template is already loaded.");
      this.templateJs =
          Thread.currentThread().getContextClassLoader().getResource(refasterjsTemplate) != null
              ? Resources.toString(Resources.getResource(refasterjsTemplate), UTF_8)
              : Files.asCharSource(new File(refasterjsTemplate), UTF_8).read();
    }
docs: Loads the RefasterJs template. This must be called before the scanner is used.