try
{
while (colIterator.hasNext())
{
item = colIterator.next();
IndirectionHandler handler = ProxyHelper.getIndirectionHandler(item);
if (handler != null)
{
if (!handler.alreadyMaterialized())
{
continue;
}
else
{
// @todo consider registering to hear when this is
// derefernced instead of just loading here -bmc
item = handler.getRealSubject();
}
}
if(!cds.isMtoNRelation())
{
//if itemCld refers to an interface the foreignKeyFieldDescriptors