*/
public class JustForDocs {
private void justForDocs() {
GraphDatabaseService database = new TestGraphDatabaseFactory().newImpermanentDatabase(); //only for demo, use your own persistent one!
TransactionExecutor executor = new SimpleTransactionExecutor(database);
executor.executeInTransaction(new VoidReturningCallback() {
@Override
public void doInTx(GraphDatabaseService database) {
database.createNode();
}
});