return new PluralRuleAdapter(pluralRule);
}
Select selectAnnot = getAnnotation(Select.class);
if (selectAnnot != null) {
final String[] validValues = type.getEnumValues();
return new AlternateMessageSelector() {
public boolean isFormAcceptable(String form) {
if (validValues == null || AlternateMessageSelector.OTHER_FORM_NAME.equals(form)) {
return true;
}
for (String value : validValues) {