List returnObjects = new ArrayList();
// A). Process persistent types
PersistentTypeMapping[] persistentTypes = queryResultMetaData.getPersistentTypeMappings();
ForceStoreManager storeMgr = (ForceStoreManager) ec.getStoreManager();
if (persistentTypes != null) {
for (int i = 0; i < persistentTypes.length; i++) {
AbstractClassMetaData acmd =
ec.getMetaDataManager().getMetaDataForClass(persistentTypes[i].getClassName(), ec.getClassLoaderResolver());
returnObjects.add(ec.findObjectUsingAID(