@@ -0,0 +1,477 @@
+package biz.plexers.sparrow.db;%0D%0A%0D%0Aimport java.util.Map;%0D%0A%0D%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0D%0A%0D%0Apublic class DbHelper %7B%0D%0A%09%0D%0A%09public static %3CE%3E E mapAsObject(Map%3CString, Object%3E map, Class%3CE%3E objectClass) %7B%0D%0A%09%09ObjectMapper objectMapper = new ObjectMapper();%0D%0A%09%09try %7B%0D%0A%09%09%09String json = objectMapper.writeValueAsString(map);%0D%0A%09%09%09return objectMapper.readValue(json, objectClass);%0D%0A%09%09%7D catch (Exception e) %7B%0D%0A%09%09%09e.printStackTrace();%0D%0A%09%09%09return null;%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%7D%0D%0A

Add DbHelper class