}
Iterator iterator = criteria.list().iterator();
while (iterator.hasNext())
{
ORTag tag = (ORTag) iterator.next();
if (objectClass != null)
{
objects.add(hibernateProvider.load(objectClass, tag.getObjectId()));
}
else
{
objects.add(hibernateProvider.load(Class.forName(tag.getObjectClass()), tag.getObjectId()));
}
}
return objects;
}