public CompositeBundle installCompositeBundle(Map frameworkConfig, String location, Map compositeManifest) throws BundleException {
SecurityManager sm = System.getSecurityManager();
if (sm != null)
// must have AllPermission to do this
sm.checkPermission(new AllPermission());
// make a local copy of the manifest first
compositeManifest = new HashMap(compositeManifest);
// make sure the manifest is valid
CompositeHelper.validateCompositeManifest(compositeManifest);