docs: private void sendOperationsForNamespaces(int permits) {
          InternalPartitionServiceImpl partitionService = getService();
          try {
              PartitionReplicationEvent event = new PartitionReplicationEvent(getPartitionId(), getReplicaIndex());
              Iterator<ServiceNamespace> iterator = namespaces.iterator();
              for (int i = 0; i < permits; i++) {
                  ServiceNamespace namespace = iterator.next();
                  Collection<Operation> operations;
                  if (NonFragmentedServiceNamespace.INSTANCE.equals(namespace)) {
                      operations = createNonFragmentedReplicationOperations(event);
                  } else {
                      operations = createFragmentReplicationOperations(event, namespace);
                  }
                  sendOperations(operations, namespace);
                  iterator.remove();
              }
          } finally {
              partitionService.getReplicaManager().releaseReplicaSyncPermits(permits);
          }
      }