public static ExecutionContext Begin(BoltGraphClient owner) { var policy = owner.PolicyFactory.GetPolicy(PolicyType.Cypher); owner.CheckTransactionEnvironmentWithPolicy(policy); var executionContext = new ExecutionContext { owner = owner, Policy = policy }; return(executionContext); }