docs: @SuppressWarnings("checkstyle:npathcomplexity")
      private boolean commitMigrationToDestination(MigrationInfo migration) {
          PartitionReplica destination = migration.getDestination();
  
          if (destination.isIdentical(node.getLocalMember())) {
              if (logger.isFinestEnabled()) {
                  logger.finest("Shortcutting migration commit, since destination is master. -> " + migration);
              }
              return true;
          }
  
          Member member = node.getClusterService().getMember(destination.address(), destination.uuid());
          if (member == null) {
              logger.warning("Cannot commit " + migration + ". Destination " + destination + " is not a member anymore");
              return false;
          }
  
          try {
              if (logger.isFinestEnabled()) {
                  logger.finest("Sending migration commit operation to " + destination + " for " + migration);
              }
              migration.setStatus(MigrationStatus.SUCCESS);
              String destinationUuid = member.getUuid();
  
              MigrationCommitOperation operation = new MigrationCommitOperation(migration, destinationUuid);
              Future<Boolean> future = nodeEngine.getOperationService()
                      .createInvocationBuilder(SERVICE_NAME, operation, destination.address())
                      .setTryCount(Integer.MAX_VALUE)
                      .setCallTimeout(memberHeartbeatTimeoutMillis).invoke();
  
              boolean result = future.get();
              if (logger.isFinestEnabled()) {
                  logger.finest("Migration commit result " + result + " from " + destination + " for " + migration);
              }
              return result;
          } catch (Throwable t) {
              logMigrationCommitFailure(migration, t);
  
              if (t.getCause() instanceof OperationTimeoutException) {
                  return commitMigrationToDestination(migration);
              }
          }
          return false;
      }