Object version = Versioning.getVersion( values, subclassPersister );
if ( log.isTraceEnabled() ) log.trace( "Cached Version: " + version );
final PersistenceContext persistenceContext = session.getPersistenceContext();
persistenceContext.addEntry(
result,
( session.isDefaultReadOnly() || ! persister.isMutable() ?
Status.READ_ONLY :
Status.MANAGED
),