if(bundleLocation != null && !bundleLocation.equals(callingBundleLocation)) { throw new SecurityException ("Not owner of the requested configuration, owned by " +bundleLocation +" caller is " +callingBundleLocation );
if(bundleLocation != null && !bundleLocation.equals(callingBundleLocation) && !callingBundle.hasPermission(ADMIN_PERMISSION)) { throw new SecurityException( "Not owner of the requested configuration, owned by " + bundleLocation + " caller is " + callingBundleLocation );
    public Configuration getConfiguration(String pid)        throws IOException {      ConfigurationDictionary d;      try {        d = ConfigurationAdminFactory.this.load(pid);      } catch (IOException e) { d = null;}      if(d == null) {        return new ConfigurationImpl(callingBundleLocation, null, pid);      } else {        String bundleLocation = (String)d.get(BUNDLE_LOCATION);        if(bundleLocation != null && !bundleLocation.equals(callingBundleLocation)) {          throw new SecurityException	    ("Not owner of the requested configuration, owned by "	     +bundleLocation +" caller is " +callingBundleLocation );        }        String factoryPid = (String)d.get(FACTORY_PID);        return new ConfigurationImpl(bundleLocation, factoryPid, pid, d);      }    }