debug.println("Installing OSGi security manager, policy="+policy);
}
System.setProperty(POLICY_PROPERTY, policy);
// Make sure policy is updated, required for some JVMs.
java.security.Policy.getPolicy().refresh();
current = new KFSecurityManager(debug);
System.setSecurityManager(current);
smUse = 1;
} else if (current instanceof ConditionalPermissionSecurityManager) {
if (smUse == 0) {
smUse = 2;