public void validateParameter(final String parameterName, final ModelNode value) throws OperationFailedException {
super.validateParameter(parameterName, value);
if (value.isDefined()) {
final String levelString = value.asString();
try {
final Level level = ModelParser.parseLevel(value);
if (!allowedValues.contains(level)) {
throw new OperationFailedException(new ModelNode().set(MESSAGES.invalidLogLevel(levelString)));
}
} catch (IllegalArgumentException e) {
throw new OperationFailedException(new ModelNode().set(MESSAGES.invalidLogLevel(levelString)));