docs: public static byte[] explodeContentAndTransformOperation(OperationContext context, ModelNode operation, ContentRepository contentRepository) throws OperationFailedException, ExplodedContentException {
          final Resource deploymentResource = context.readResource(PathAddress.EMPTY_ADDRESS);
          ModelNode contentItem = getContentItem(deploymentResource);
          ModelNode explodedPath = DEPLOYMENT_CONTENT_PATH.resolveModelAttribute(context, operation);
          byte[] oldHash = CONTENT_HASH.resolveModelAttribute(context, contentItem).asBytes();
          final byte[] hash;
          if (explodedPath.isDefined()) {
              hash = contentRepository.explodeSubContent(oldHash, explodedPath.asString());
          } else {
              hash = contentRepository.explodeContent(oldHash);
          }
  
          // Clear the contents and update with the hash
          final ModelNode slave = operation.clone();
          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;
      }