profile.setLikes(Integer.valueOf(user.get("likes").toString()));
profile.setDefaultPostFormat(user.get("default_post_format").toString());
try {
List<LinkedHashMap<String, Object>> t = (List<LinkedHashMap<String, Object>>) user.get("blogs");
for (LinkedHashMap<String, Object> linkedHashMap : t) {
final TumblrBlog blog = new TumblrBlog();
blog.setAsk(Boolean.valueOf(linkedHashMap.get("ask").toString()));
blog.setDescription(linkedHashMap.get("description").toString());
blog.setFollowers(Integer.valueOf(linkedHashMap.get("followers").toString()));
blog.setUrl(linkedHashMap.get("url").toString());
blog.setName(linkedHashMap.get("name").toString());
blog.setPrimary(Boolean.valueOf(linkedHashMap.get("primary").toString()));
//blog.setLastUpdated(new Date(linkedHashMap.get("updated").toString()));
blog.setLastUpdated(Calendar.getInstance().getTime());
profile.getListBlogs().add(blog);
}
}catch(Exception ex){
ex.printStackTrace();
log.error(ex);