
for (int capIdx = 0; (capsCopy != null) && (capIdx < capsCopy.length); capIdx++)
</BUG>
{
<BUG>for (int wireIdx = 0; (wires != null) && (wireIdx < wires.length); wireIdx++)
</BUG>
{
<BUG>if (wires[wireIdx].getRequirement().isSatisfied(capsCopy[capIdx]))
{
capsCopy[capIdx] = null;
break;</BUG>
}

}
else if (currentBestHost.getVersion().compareTo(host.getVersion()) < 0)
{
currentBestHost = host;
