os = rm.writeResource(txId, loadPath);
save(os);
registeredForSaving = false;
} catch (ResourceManagerException e) {
if (e.getStatus() == ResourceManagerException.ERR_NO_SUCH_RESOURCE) {
throw new ObjectNotFoundException(uri);
} else {
store.throwInternalError(e, uri);
}
} catch (IOException e) {
store.throwInternalError(e);