docs: public static byte[] addContentToExplodedAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws OperationFailedException, ExplodedContentException {
          final Resource deploymentResource = context.readResource(PathAddress.EMPTY_ADDRESS);
          ModelNode contentItem = getContentItem(deploymentResource);
          byte[] oldHash = CONTENT_HASH.resolveModelAttribute(context, contentItem).asBytes();
          List<ModelNode> contents = CONTENT_PARAM_ALL_EXPLODED.resolveModelAttribute(context, operation).asList();
          final List<ExplodedContent> addedFiles = new ArrayList<>(contents.size());
  
          final ModelNode slave = operation.clone();
          ModelNode slaveAddedfiles = slave.get(UPDATED_PATHS.getName()).setEmptyList();
          for(ModelNode content : contents) {
              InputStream in;
              if(hasValidContentAdditionParameterDefined(content)) {
                  in = getInputStream(context, content);
              } else {
                  in = null;
              }
              String path = TARGET_PATH.resolveModelAttribute(context, content).asString();
              addedFiles.add(new ExplodedContent(path, in));
              slaveAddedfiles.add(path);
          }
          final boolean overwrite = OVERWRITE.resolveModelAttribute(context, operation).asBoolean(true);
          final byte[] hash = contentRepository.addContentToExploded(oldHash, addedFiles, overwrite);
  
          // Clear the contents and update with the hash
          ModelNode addedContent = new ModelNode().setEmptyObject();
          addedContent.get(HASH).set(hash);
          addedContent.get(TARGET_PATH.getName()).set(".");
          slave.get(CONTENT).setEmptyList().add(addedContent);
          // 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<>());
          }
          transformers.add(new CompositeOperationAwareTransmuter(slave));
          return hash;
      }