int index = -1;
for (int listIdx = 0;
(index < 0) && (listIdx < fragmentList.size());
listIdx++)
{
<BUG>IModule f = (IModule) fragmentList.get(listIdx);
if (bestFragment.getBundle().getBundleId()</BUG>
< f.getBundle().getBundleId())
{
index = listIdx;

int index = -1;
for (int listIdx = 0;
(index < 0) && (listIdx < fragmentList.size());
listIdx++)
{
Module f = fragmentList.get(listIdx);
if (bestFragment.getBundle().getBundleId()
< f.getBundle().getBundleId())
{
index = listIdx;
