}
@Override
protected Void executeInTransaction( GraphDatabaseService db, Transaction tx )
{
Config config = getConfig( db );
LockManager lockManager = config.getLockManager();
LockReleaser lockReleaser = config.getLockReleaser();
for ( int i = 0; i < amount; i++ )
{
Object resource = new LockableNode( i );
lockManager.getWriteLock( resource );
lockReleaser.addLockToTransaction( resource, LockType.WRITE );