undertow/src/main/java/org/wildfly/extension/undertow/PredicateValidator.java
@Override
    public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException {
        super.validateParameter(parameterName, value);
        if (value.isDefined() && value.getType() != ModelType.EXPRESSION) {
            String val = value.asString();
            try {
                PredicateParser.parse(val, getClass().getClassLoader());
            } catch (Exception e) {
                throw new OperationFailedException(UndertowLogger.ROOT_LOGGER.predicateNotValid(val, e.getMessage()), e);
            }
        }
    }
@Override
    public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException {
        super.validateParameter(parameterName, value);
        if (value.isDefined() && value.getType() != ModelType.EXPRESSION) {
            String val = value.asString();
            try {
                PredicateParser.parse(val, getClass().getClassLoader());
            } catch (Exception e) {
                throw new OperationFailedException(UndertowLogger.ROOT_LOGGER.predicateNotValid(val, e.getMessage()), e);
            }
        }
    }
{@inheritDoc}