public static Map<String, String> getMap(ResultSet rs, String columnName) throws SQLException {
Map<String, String> tags = Maps.newHashMap();
PGHStore dbTags = (PGHStore) rs.getObject(columnName);
if(dbTags != null) {
for(Map.Entry<String, String> tagEntry : dbTags.entrySet()) {
tags.put(tagEntry.getKey(), tagEntry.getValue());
}
}
return tags;