private Object toEnum ( ParameterType parameterType , String enumTextValue , String paramName , boolean hardFailEnumDeserialisation ) { try { return EnumUtils . readEnum ( parameterType . getImplementationClass ( ) , enumTextValue , hardFailEnumDeserialisation ) ; } catch ( Exception e ) { throw XMLTranscriptionInput . exceptionDuringDeserialisation ( parameterType , paramName , e , false ) ; } }
Deserialise enums explicitly