public OID load(final TransactionContext tx, final OID oid, final ProposedEntity proposedObject,
final AccessMode suggestedAccessMode, final int timeout, final QueryResults results)
throws PersistenceException {
TypeInfo typeInfo = (TypeInfo) _typeInfo.get(oid.getName());
if (typeInfo == null) {
throw new ClassNotPersistenceCapableException(Messages.format(
"persist.classNotPersistenceCapable", oid.getName()));
}
ClassMolder molder = oid.getMolder();
AccessMode accessMode = molder.getAccessMode(suggestedAccessMode);