public static < T > T readAsObjectOf ( Class < T > clazz , String value ) { final ObjectMapper mapper = new ObjectMapper ( ) ; try { return mapper . readValue ( value , clazz ) ; } catch ( IOException e ) { LOGGER . error ( e . getMessage ( ) , e . fillInStackTrace ( ) ) ; } return null ; }
Reads in a String value and returns the object for which it represents .