/**
   * Verifies cluster consistency (currently checks whether there is no other node with the same ID,
   * and whether clustered/non-clustered nodes are OK).
   *
   * @param result
   * @return
   */
  public void checkClusterConfiguration(OperationResult result) {

    //        LOGGER.trace("taskManager = " + taskManager);
    //        LOGGER.trace("taskManager.getNodeRegistrar() = " + taskManager.getNodeRegistrar());

    nodeRegistrar.verifyNodeObject(
        result); // if error, sets the error state and stops the scheduler
    nodeRegistrar.checkNonClusteredNodes(result); // the same
  }