docs: public static String filterToFilterSpec(final ModelNode value) throws OperationFailedException {
          if (value.isDefined()) {
              final StringBuilder result = new StringBuilder();
              filterToFilterSpec(value, result, false);
              if (result.length() == 0) {
                  final String name = value.hasDefined(CommonAttributes.FILTER.getName()) ? value.get(CommonAttributes.FILTER.getName()).asString() : value.asString();
                  throw Logging.createOperationFailure(LoggingLogger.ROOT_LOGGER.invalidFilter(name));
              }
              return result.toString();
          }
          return "";
      }