private Class<?> checkSunClass(String className,AccessControlException e) throws AccessControlException {
  Permission perm=e.getPermission();
  String name=null;
  if (perm != null) {
    name=perm.getName();
  }
  Class<?> resolvedClass=permittedSunClasses.get(className);
  if ((name == null) || (resolvedClass == null) || ((!name.equals("accessClassInPackage.sun.rmi.server")) && (!name.equals("accessClassInPackage.sun.rmi.registry")))) {
    throw e;
  }
  return resolvedClass;
}

private Class < ? > checkSunClass ( String className , AccessControlException e ) throws AccessControlException { Permission perm = e . getPermission ( ) ; String name = null ; if ( perm != null ) { name = perm . getName ( ) ; } Class < ? > resolvedClass = permittedSunClasses . get ( className ) ; if ( ( name == null ) || ( resolvedClass == null ) || ( ( ! name . equals ( "accessClassInPackage.sun.rmi.server" ) ) && ( ! name . equals ( "accessClassInPackage.sun.rmi.registry" ) ) ) ) { throw e ; } return resolvedClass ; }
fix for 4179055 : need to assist resolving sun stubs ; resolve class locally if it is a " permitted " sun class
