if (bestFragment == fragment)
{
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();

List fragmentList = new ArrayList();
</BUG>
for (int fragIdx = 0;

if (bestFragment == fragment)
{
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();
List<Module> fragmentList = new ArrayList();
