PermissionCollection pc = Policy.getPolicy().getPermissions(new CodeSource(null, null));
PermissionCollection pc = Policy.getPolicy().getPermissions(new CodeSource(null, ( java.security.cert.Certificate[] )null));
  PermissionAdminImpl(Framework fw) {    framework = fw;    // Get system default permissions    PermissionCollection pc = Policy.getPolicy().getPermissions(new CodeSource(null, null));    // Remove AllPermission    if (pc != null && pc.implies(new AllPermission())) {      runtimePermissions = new Permissions();      for (Enumeration e = pc.elements(); e.hasMoreElements();) {	Permission p = (Permission) e.nextElement();	if (!(p instanceof AllPermission)) {	  runtimePermissions.add(p);	}      }    } else {      runtimePermissions = pc;    }    permDir = Util.getFileStorage("perms");    if (permDir == null) {      System.err.println("Property org.osgi.framework.dir not set," +			 "permission data will not be saved between sessions");    } else {      load();    }  }