private bool EnsureNotReadVetoed(RavenJObject result)
        {
            var metadata = result.Value <RavenJObject>(Constants.Metadata);

            if (metadata != null)
            {
                documentSession.EnsureNotReadVetoed(metadata); // this will throw on read veto
            }
            return(true);
        }