code: private static boolean validateEnumeration(
              Collection<String> allowedValues, String value) {
          return (allowedValues != null && allowedValues.contains(value));
      }
docs: Validate the given value against a collection of allowed values.
  
  @param allowedValues
  @param value Value to test
  @return boolean {@code true} if {@code value} in {@code allowedValues}