[NUCCORE-1239] For persistence when finding the object provider because
it will not be persisted yet when using optimistic tx