private < X > X operateOnOpenGraph ( Supplier < X > supplier ) { if ( ! isLocal ( ) || isClosed ( ) ) throw TransactionException . transactionClosed ( this , this . closedReason ) ; return supplier . get ( ) ; }
An operation on the graph which requires it to be open .