/**
* Not API - called when {@link InMemoryObjectStore} is
* {@link InMemoryObjectStore#close() close}d.
*/
public void attach(final PersistenceSession persistenceSession, final ObjectStorePersistedObjects persistedObjects) {
final OidGenerator oidGenerator = persistenceSession.getOidGenerator();
if (oidGenerator instanceof SimpleOidGenerator) {
final SimpleOidGenerator simpleOidGenerator = (SimpleOidGenerator) oidGenerator;
persistedObjects.saveOidGeneratorMemento(simpleOidGenerator.getMemento());
}
this.persistedObjects = persistedObjects;