docs: public static void redeployLinksAndTransformOperationForDomain(OperationContext context, Set<String> runtimeNames, ModelNode removeOperation) throws OperationFailedException {
          Set<String> serverGroupNames = listServerGroupsReferencingOverlay(context.readResourceFromRoot(PathAddress.EMPTY_ADDRESS), context.getCurrentAddressValue());
          Map<String, Set<String>> deploymentPerServerGroup = new HashMap<>();
          for (String serverGoupName : serverGroupNames) {
              deploymentPerServerGroup.put(serverGoupName,
                      listDeployments(context.readResourceFromRoot(PathAddress.pathAddress(PathElement.pathElement(SERVER_GROUP, serverGoupName))),runtimeNames));
          }
          if (deploymentPerServerGroup.isEmpty()) {
              for (String s : runtimeNames) {
                  ServerLogger.ROOT_LOGGER.debugf("We haven't found any server-group for %s", s);
              }
          }
          Operations.CompositeOperationBuilder opBuilder = Operations.CompositeOperationBuilder.create();
          if(removeOperation != null) {
               opBuilder.addStep(removeOperation);
          }
          //Add a deploy step for each affected deployment in its server-group.
          for (Map.Entry<String, Set<String>> entry : deploymentPerServerGroup.entrySet()) {
              if ((! entry.getValue().isEmpty())) {
                  for (String deploymentName : entry.getValue()) {
                      opBuilder.addStep(addRedeployStep(context.getCurrentAddress().getParent().append(SERVER_GROUP, entry.getKey()).append(DEPLOYMENT, deploymentName)));
                  }
              }
          }
          // Add the domain op transformer
          List<DomainOperationTransmuter> transformers = context.getAttachment(OperationAttachments.SLAVE_SERVER_OPERATION_TRANSMUTERS);
          if (transformers == null) {
              context.attach(OperationAttachments.SLAVE_SERVER_OPERATION_TRANSMUTERS, transformers = new ArrayList<>());
          }
          final ModelNode slave = opBuilder.build().getOperation();
          transformers.add(new OverlayOperationTransmuter(slave, context.getCurrentAddress()));
      }