code: public static OperationStepHandler wrapHandler(final String localHostName, final String operationName, final PathAddress address, final OperationEntry entry) {
  
          // Don't wrap runtime operations
          if (entry.getFlags().contains(OperationEntry.Flag.READ_ONLY) || entry.getFlags().contains(OperationEntry.Flag.RUNTIME_ONLY)) {
              return entry.getOperationHandler();
          }
  
          final int size = address.size();
          // Wrap all composite operations
          if (size == 0 && COMPOSITE.equals(operationName)) {
              return new WrappedCompositeOperationHandler(localHostName);
          } else if (size == 1) {
              final PathElement element = address.getElement(0);
              if (SERVER_GROUP.equals(element.getKey())) {
                  // Wrap all configuration operations targeting the server-group directly
                  return new SyncModelOperationHandlerWrapper(localHostName, entry.getOperationHandler());
              } else if (PROFILE.equals(element.getKey()) || SOCKET_BINDING_GROUP.equals(element.getKey())) {
                  // This might just need to wrap the write-attribute(name=includes) operation
                  if (WRITE_ATTRIBUTE_OPERATION.equals(operationName)) {
                      return new SyncModelOperationHandlerWrapper(localHostName, entry.getOperationHandler());
                  }
              }
          } else if (size == 2) {
              // Wrap all configuration operations targeting the server-config directly
              final PathElement element = address.getElement(1);
              if (SERVER_CONFIG.equals(element.getKey())) {
                  return new SyncModelOperationHandlerWrapper(localHostName, entry.getOperationHandler());
              }
          }
          return entry.getOperationHandler();
      }
docs: Wrap an {@code OperationStepHandler} in case it targets addresses, which may need to fetch missing configuration
  from the master.
  
  @param localHostName    the local host name
  @param operationName    the operation name
  @param address          the operation address
  @param entry            the operation entry
  @return the operation handler