code: @Override
      public Locale getLocale() {
          if (root instanceof RootDocImpl)
              return ((RootDocImpl)root).getLocale();
          else
              return Locale.getDefault();
      }
docs: {@inheritDoc}