if (json != null) {
json = json.get("profile");
if (json != null) {
profile.setId(JsonHelper.get(json, "guid"));
for (final String attribute : OAuthAttributesDefinitions.yahooDefinition.getAllAttributes()) {
profile.addAttribute(attribute, JsonHelper.get(json, attribute));
}
}
}
return profile;
}