code: public Scriptable wrapJavaClass(Context cx, Scriptable scope,
                                      Class<?> javaClass)
      {
          return new NativeJavaClass(scope, javaClass);
      }
docs: Wrap a Java class as Scriptable instance to allow access to its static
  members and fields and use as constructor from JavaScript.
  <p>
  Subclasses can override this method to provide custom wrappers for
  Java classes.
  
  @param cx the current Context for this thread
  @param scope the scope of the executing script
  @param javaClass the class to be wrapped
  @return the wrapped value which shall not be null
  @since 1.7R3