final DropBoxProfile profile = new DropBoxProfile();
JsonNode json = JsonHelper.getFirstNode(body);
if (json != null) {
profile.setId(JsonHelper.get(json, "uid"));
for (final String attribute : OAuthAttributesDefinitions.dropBoxDefinition.getPrincipalAttributes()) {
profile.addAttribute(attribute, JsonHelper.get(json, attribute));
}
json = (JsonNode) JsonHelper.get(json, "quota_info");
if (json != null) {
for (final String attribute : OAuthAttributesDefinitions.dropBoxDefinition.getOtherAttributes()) {
profile.addAttribute(attribute, JsonHelper.get(json, attribute));