@Override
protected LinkedInProfile extractUserProfile(final String body) {
final LinkedInProfile profile = new LinkedInProfile();
for (final String attribute : OAuthAttributesDefinitions.linkedinDefinition.getAllAttributes()) {
final String value = StringUtils.substringBetween(body, "<" + attribute + ">", "</" + attribute + ">");
profile.addAttribute(attribute, value);
if (LinkedInAttributesDefinition.URL.equals(attribute)) {
final String id = StringUtils.substringBetween(value, "id=", "&authType=");
profile.setId(id);
}
}