policies[policyOrder] = new SystemPolicy(policedLoader.parent);
policies[policyOrder] = new SystemPolicy(policedLoader.getParentClassLoader());
	private synchronized IBuddyPolicy getPolicyImplementation(int policyOrder) {		if (policies[policyOrder] instanceof String) {			String buddyName = (String) policies[policyOrder];			if (REGISTERED_POLICY.equals(buddyName)) {				policies[policyOrder] = new RegisteredPolicy(policedLoader);				return (IBuddyPolicy) policies[policyOrder];			}			if (BOOT_POLICY.equals(buddyName)) {				policies[policyOrder] = SystemPolicy.getInstance(SystemPolicy.BOOT);				return (IBuddyPolicy) policies[policyOrder];			}			if (APP_POLICY.equals(buddyName)) {				policies[policyOrder] = SystemPolicy.getInstance(SystemPolicy.APP);				return (IBuddyPolicy) policies[policyOrder];			}			if (EXT_POLICY.equals(buddyName)) {				policies[policyOrder] = SystemPolicy.getInstance(SystemPolicy.EXT);				return (IBuddyPolicy) policies[policyOrder];			}			if (DEPENDENT_POLICY.equals(buddyName)) {				policies[policyOrder] = new DependentPolicy(policedLoader);				return (IBuddyPolicy) policies[policyOrder];			}			if (GLOBAL_POLICY.equals(buddyName)) {				policies[policyOrder] = new GlobalPolicy(policedLoader.bundle.framework.packageAdmin);				return (IBuddyPolicy) policies[policyOrder];			}			if (PARENT_POLICY.equals(buddyName)) {				policies[policyOrder] = new SystemPolicy(policedLoader.parent);				return (IBuddyPolicy) policies[policyOrder];			}						//			//Buddy policy can be provided by service implementations			//			BundleContext fwkCtx = policedLoader.bundle.framework.systemBundle.context;			//			ServiceReference[] matchingBuddies = null;			//			try {			//				matchingBuddies = fwkCtx.getAllServiceReferences(IBuddyPolicy.class.getName(), "buddyName=" + buddyName);			//			} catch (InvalidSyntaxException e) {			//				//The filter is valid			//			}			//			if (matchingBuddies == null)			//				return new IBuddyPolicy() {			//					public Class loadClass(String name) {			//						return null;			//					}			//			//					public URL loadResource(String name) {			//						return null;			//					}			//			//					public Enumeration loadResources(String name) {			//						return null;			//					}			//				};			//			//			//The policies loaded through service are not cached			//			return ((IBuddyPolicy) fwkCtx.getService(matchingBuddies[0]));		}		return (IBuddyPolicy) policies[policyOrder];	}