{
if (caps.get(capIdx).getNamespace().equals(Capability.PACKAGE_NAMESPACE)
&& wire.getCapability().getAttribute(Capability.PACKAGE_ATTR).getValue()
.equals(caps.get(capIdx).getAttribute(Capability.PACKAGE_ATTR).getValue()))
{
<BUG>m_pkgCapSet.removeCapability(caps.get(capIdx));
break;</BUG>
}
}
}

{
Requirement hostReq = getFragmentHostRequirement(fragment);
SecurityManager sm = System.getSecurityManager();
if (sm != null)
{
if (!((BundleProtectionDomain) fragment.getSecurityContext()).impliesDirect(
new BundlePermission(fragment.getSymbolicName(), BundlePermission.FRAGMENT)))
{
return new HashSet<Capability>();
