JDOFetchGroup jdoGrp = (JDOFetchGroup)getPersistenceManagerFactory().getFetchGroup(cls, name);
if (jdoGrp != null)
{
// PMF returned us a group (maybe newly created) so put a copy in scope here
// We actually copy the internal group to the OM, and have our own JDOFetchGroup here
FetchGroup internalGrp = (jdoGrp).getInternalFetchGroup();
FetchGroup internalCopy = new FetchGroup(internalGrp);
jdoGrp = new JDOFetchGroup(internalCopy);
objectMgr.addInternalFetchGroup(internalCopy);
jdoFetchGroups.add(jdoGrp);
return jdoGrp;
}