m_fragmentMap.remove(fragment.getSymbolicName());
}
List matchingHosts = getMatchingHosts(fragment);
for (int hostIdx = 0; hostIdx < matchingHosts.size(); hostIdx++)
{
<BUG>IModule host = ((ICapability) matchingHosts.get(hostIdx)).getModule();
IModule[] fragments = ((ModuleImpl) host).getFragments();

for (int fragIdx = 0;
(fragments != null) && (fragIdx < fragments.length);
fragIdx++)
{
if (!fragments[fragIdx].equals(fragment))</BUG>
{

m_fragmentMap.remove(fragment.getSymbolicName());
}
List matchingHosts = getMatchingHosts(fragment);
for (int hostIdx = 0; hostIdx < matchingHosts.size(); hostIdx++)
{
Module host = ((Capability) matchingHosts.get(hostIdx)).getModule();
List<Module> fragments = ((ModuleImpl) host).getFragments();
if (fragments.contains(fragment))
{
