QueryResult linksQueryResult = VersionControlHelper.service.allVersionsOf(wtPartMaster);
WTPart wtPart = null;
boolean latestIteration = false;
while ((linksQueryResult.hasMoreElements()) && (!latestIteration))
{
WTPart tempPart = (WTPart)linksQueryResult.nextElement();
latestIteration = tempPart.isLatestIteration();
if (latestIteration)
{
wtPart = tempPart;
}
}