try {         clazz = Class.forName(name);  } catch (ClassNotFoundException e) {
clazz = packageAdmin.loadServiceClass(name,null); if (clazz == null) {
	private PermissionCollection resolvePermissions(Permission permission) {		UnresolvedPermissionCollection unresolvedCollection = (UnresolvedPermissionCollection) collections.get(UnresolvedPermission.class);		if (unresolvedCollection != null) {			String name = permission.getClass().getName();			Vector permissions = unresolvedCollection.getPermissions(name);			if (permissions != null) {				PermissionCollection collection = null;				Class clazz;				try {					// We really need to resolve the permission					// by loading it only from the proper classloader,					// i.e. the system classloader or and exporting bundle's					// classloader. Otherwise there is a security hole.					// TODO  It is unclear how this works in the world of modules and multiple 					// versions.  Just loading up any old class with the right name does not seem 					// appropriate.  For now just put in a dummy classload call to reduce code impact.					clazz = Class.forName(name);					//                    clazz = packageAdmin.loadClass(name);				} catch (ClassNotFoundException e) {					return null;				}				Enumeration enum = permissions.elements();				while (enum.hasMoreElements()) {					Permission resolved = ((UnresolvedPermission) enum.nextElement()).resolve(clazz);					if (resolved != null) {						if (collection == null) {							collection = newPermissionCollection(resolved);						}						collection.add(resolved);					}				}				return collection;			}		}