// eg "NONEXISTENT:123"
return null;
}
// TODO: the logic to figure out which PersistenceSession API to call should be pushed down into PersistenceSession itself.
if(spec.containsFacet(ViewModelFacet.class)) {
if(!rootOid.getIdentifier().startsWith(OidMarshaller.VIEWMODEL_INDICATOR)) {
// TODO: this bodge to ensure that the "*" (view model indicator) is probably not required; but leaving it in until have better test coverage
rootOid = RootOidDefault.create(rootOid.getObjectSpecId(), OidMarshaller.VIEWMODEL_INDICATOR + rootOid.getIdentifier());
}
try {