@Override
public void validateParameter(final String parameterName, final ModelNode value) throws OperationFailedException {
super.validateParameter(parameterName, value);
if (value.isDefined()) {
final Target target = Target.fromString(value.asString());
if (target == null || !allowedValues.contains(target)) {
throw new OperationFailedException(new ModelNode().set(MESSAGES.invalidTargetName(allowedValues)));
}
}
}