public void refreshRoot(final ObjectAdapter adapter) {
final Object domainObject = adapter.getObject();
if (domainObject == null) {
// REVIEW: is this possible?
throw new ObjectNotFoundException(adapter.getOid());
}
try {
getPersistenceManager().refresh(domainObject);
} catch (final RuntimeException e) {
throw new ObjectNotFoundException(adapter.getOid(), e);
}
// possibly redundant because also called in the post-load event
// listener, but (with JPA impl) found it was required if we were ever to
// get an eager left-outer-join as the result of a refresh (sounds possible).