code: private static <T extends Enum<T> & FieldNameProvider> T getAttributeIdentifierByName(final Class<T> enumType,
              final String name) {
          try {
              return Enum.valueOf(enumType, name.toUpperCase());
          } catch (final IllegalArgumentException e) {
              throw new SortParameterUnsupportedFieldException(e);
          }
      }
docs: Returns the attribute identifier for the given name.
  
  @param enumType
  the class of the enum which the fields in the sort string
  should be related to.
  @param name
  the name of the enum
  @param <T>
  the type of the enumeration which must be derived from
  {@link FieldNameProvider}
  @return the corresponding enum
  @throws SortParameterUnsupportedFieldException
  if there is no matching enum for the specified name