code: @Override
      public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
  
          if (contentRepository != null) {
              // Trigger authz
              AuthorizationResult authorizationResult = context.authorize(operation, ACTION_EFFECT_SET);
              authorizationResult.failIfDenied(operation, context.getCurrentAddress());
  
              try {
                  InputStream is = getContentInputStream(context, operation);
                  try {
                      byte[] hash = contentRepository.addContent(is);
                      context.getResult().set(hash);
                  }
                  finally {
                      safeClose(is);
                  }
              }
              catch (IOException e) {
                  throw ROOT_LOGGER.caughtIOExceptionUploadingContent(e);
              }
          }
          // else this is a slave domain controller and we should ignore this operation
      }
docs: {@inheritDoc}