CPDParameterTypeRestriction restriction = param.getType().getRestriction();
if ("range".equals(restriction.getType())) {
} else if ("enumeration".equals(restriction.getType())) {
if (!restriction.getValues().contains(paramValue)) {
context.addMessage(new MessageBuilder().error().source(paramPath)
<BUG>.code("errors.channelDefinition.param.enum")
.defaultText("Invalid selection").build());
</BUG>
}
}

CPDParameterTypeRestriction restriction = param.getType().getRestriction();
if ("range".equals(restriction.getType())) {
} else if ("enumeration".equals(restriction.getType())) {
if (!restriction.getValues().contains(paramValue)) {
context.addMessage(new MessageBuilder().error().source(paramPath)
.code("invalid.selection").build());
