code: @Override
      protected List<Long> generateNodes(final GeneratorConfiguration config) {
          final List<Long> nodes = new ArrayList<>();
  
          int numberOfNodes = config.getNumberOfNodes();
  
          Transaction tx = database.beginTx();
          try {
              for (int i = 1; i <= numberOfNodes; i++) {
                  nodes.add(config.getNodeCreator().createNode(database).getId());
  
                  if (i % config.getBatchSize() == 0) {
                      tx.success();
                      tx.close();
                      tx = database.beginTx();
                  }
              }
  
              tx.success();
          } finally {
              tx.close();
          }
  
          return nodes;
      }
docs: {@inheritDoc}