code: public String resolvePackageName (final String packageName)
    {
      String resolvedPackageName = packageName;
      if (resolvedPackageName != null && resolvedPackageName.startsWith ("*"))
      {
        resolvedPackageName = getParserPackage () + resolvedPackageName.substring (1);
        if (resolvedPackageName.startsWith ("."))
        {
          resolvedPackageName = resolvedPackageName.substring (1);
        }
      }
      return resolvedPackageName;
    }
docs: Resolves the specified package name against the package name of the parser
  generated from this grammar. To reference the parser package, the input
  string may use the prefix "*". For example, if the package for the parser
  is "org.apache" and the input string is "*.node", the resolved package is
  "org.apache.node". The period after the asterisk is significant, i.e. in
  the previous example the input string "*node" would resolve to
  "org.apachenode".
  
  @param packageName
  The package name to resolve, may be <code>null</code>.
  @return The resolved package name or <code>null</code> if the input string
  was <code>null</code>.