docs: void setActiveMigration() {
          InternalPartitionServiceImpl partitionService = getService();
          MigrationManager migrationManager = partitionService.getMigrationManager();
          MigrationInfo currentActiveMigration = migrationManager.setActiveMigration(migrationInfo);
          if (currentActiveMigration != null) {
              if (migrationInfo.equals(currentActiveMigration)) {
                  migrationInfo = currentActiveMigration;
                  return;
              }
  
              throw new RetryableHazelcastException("Cannot set active migration to " + migrationInfo
                      + ". Current active migration is " + currentActiveMigration);
          }
          PartitionStateManager partitionStateManager = partitionService.getPartitionStateManager();
          if (!partitionStateManager.trySetMigratingFlag(migrationInfo.getPartitionId())) {
              throw new RetryableHazelcastException("Cannot set migrating flag, "
                      + "probably previous migration's finalization is not completed yet.");
          }
      }