code: protected String getPackageName(final Class<?> root) {
          return root.getName().substring(0, root.getName().length() - root.getSimpleName().length() - 1);
      }
docs: GWT-friendly way of extracting package name.
  
  @param root scanning root.
  @return name of the package of the root class.