public ObjectAdapter loadInstanceAndAdapt(final TypedOid oid) throws ObjectNotFoundException, ObjectPersistenceException {
if(LOG.isDebugEnabled()) {
LOG.debug("getObject " + oid);
}
final ObjectSpecification objectSpec = getSpecificationLookup().lookupBySpecId(oid.getObjectSpecId());
final ObjectStoreInstances ins = instancesFor(objectSpec.getSpecId());
final ObjectAdapter adapter = ins.getObjectAndMapIfRequired(oid);
if (adapter == null) {
throw new ObjectNotFoundException(oid);
}
return adapter;
}