@Override
    public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException {
        super.validateParameter(parameterName, value);
        if (value.isDefined() && value.getType() != ModelType.EXPRESSION) {
            byte[] val = value.asBytes();
            if (val.length < min) {
                throw new OperationFailedException(ControllerLogger.ROOT_LOGGER.invalidMinSize(val.length, parameterName, min));
            }
            else if (val.length > max) {
                throw new OperationFailedException(ControllerLogger.ROOT_LOGGER.invalidMaxSize(val.length, parameterName, max));
            }
        }
    }
@ Override public void validateParameter ( String parameterName , ModelNode value ) throws OperationFailedException { super . validateParameter ( parameterName , value ) ; if ( value . isDefined ( ) && value . getType ( ) != ModelType . EXPRESSION ) { byte [ ] val = value . asBytes ( ) ; if ( val . length < min ) { throw new OperationFailedException ( ControllerLogger . ROOT_LOGGER . invalidMinSize ( val . length , parameterName , min ) ) ; } else if ( val . length > max ) { throw new OperationFailedException ( ControllerLogger . ROOT_LOGGER . invalidMaxSize ( val . length , parameterName , max ) ) ; } } }
{@inheritDoc}