* @param Map
* <String, Object>
*/
@SuppressWarnings("unchecked")
private Category getCategoryFromMap(Map<String, Object> cat) {
Category category = new Category();
for (Map.Entry<String, Object> attribute : cat.entrySet()) {
if (attribute.getKey().equals("children")) {
List<Category> children = new ArrayList<Category>();
List<Map<String, Object>> childrenList = (List<Map<String, Object>>) attribute
.getValue();
for (Map<String, Object> child : childrenList) {
Category c = getCategoryFromMap(child);
children.add(c);
}
category.setChildren(children);
} else {