JDOStateManagerImpl cacheSM = new JDOStateManagerImpl(myOM, cmd);
// TODO Change to use a specific method - lifecycle state is not strictly correct
cacheSM.initialiseForDetached(cachePC, getExternalObjectId(myPC), getVersion(myPC));
// Copy across the specified fields into the cached object
cacheSM.replaceFields(cacheFieldsToLoad, new CachePopulateFieldManager(this, cachedPC));
// Disconnect the StateManager
replaceStateManager(((PersistenceCapable)cachePC), null);
}
}