public void tryRollback(final Graph graph) {
        if (graph.features().graph().supportsTransactions())
            graph.tx().rollback();
    }
Utility method that rollsback if the graph supports transactions.
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/AbstractGremlinTest.java