final WordPressProfile profile = new WordPressProfile();
JsonNode json = JsonHelper.getFirstNode(body);
if (json != null) {
profile.setId(JsonHelper.get(json, "ID"));
for (final String attribute : OAuthAttributesDefinitions.wordPressDefinition.getPrincipalAttributes()) {
profile.addAttribute(attribute, JsonHelper.get(json, attribute));
}
json = json.get("meta");
if (json != null) {
final String attribute = WordPressAttributesDefinition.LINKS;
profile.addAttribute(attribute, JsonHelper.get(json, attribute));