code: protected Locator createLocator(final Token t) {
          return new Locator(getInputSource().getURI(),
              t == null ? 0 : t.beginLine,
              t == null ? 0 : t.beginColumn);
      }
docs: Returns a new locator for the given token.
  @param t the token to generate the locator for
  @return a new locator