question: private static < T > T hashMapToObject ( LinkedHashMap map , Class < T > type ) { try { return stringToObject ( mapper . writeValueAsString ( map ) , type ) ; } catch ( IOException e ) { log . warn ( "Could not create a object of the class " + type . getName ( ) + " out of the map " + map . toString ( ) + " :" + e . getMessage ( ) ) ; return null ; } }
target:  takes a HashMap and creates an Object. The HashMap should be created through jackson, so that jackson can deserialize it and instantiate an object.