Transaction tx = graphDbImpl.beginTx();
try
{
javax.transaction.Transaction javaxTx = graphDbImpl.getConfig().getTxModule().getTxManager().getTransaction();
javaxTx.enlistResource( connection.getXaResource() );
connection.createIndex( cls, indexName, config );
tx.success();
}
catch ( Exception e )
{
this.exception = e;