IRequirement hostReq = null;
for (int reqIdx = 0; (hostReq == null) && (reqIdx < reqs.length); reqIdx++)
</BUG>
{
<BUG>if (reqs[reqIdx].getNamespace().equals(ICapability.HOST_NAMESPACE))
</BUG>
{
<BUG>hostReq = reqs[reqIdx];
</BUG>
}

"Unable to find host.", rootModule, getFragmentHostRequirement(rootModule));
}
}
return newRootModule;
}
private static Requirement getFragmentHostRequirement(Module fragment)
{
List<Requirement> reqs = fragment.getRequirements();
Requirement hostReq = null;
for (int reqIdx = 0; (hostReq == null) && (reqIdx < reqs.size()); reqIdx++)
{
if (reqs.get(reqIdx).getNamespace().equals(Capability.HOST_NAMESPACE))
{
hostReq = reqs.get(reqIdx);
