@Override
    protected UserProfile extractUserProfile(final String body) {
        final TwitterProfile profile = new TwitterProfile();
        final JsonNode json = JsonHelper.getFirstNode(body);
        if (json != null) {
            profile.setId(JsonHelper.get(json, "id"));
            profile.addAttribute(EurekaAttributesDefinition.USERNAME, JsonHelper.get(json, TwitterAttributesDefinition.SCREEN_NAME));
            profile.addAttribute(EurekaAttributesDefinition.FULLNAME, JsonHelper.get(json, TwitterAttributesDefinition.NAME));
        }
        return profile;
    }
@Override
    protected UserProfile extractUserProfile(final String body) {
        final TwitterProfile profile = new TwitterProfile();
        final JsonNode json = JsonHelper.getFirstNode(body);
        if (json != null) {
            profile.setId(JsonHelper.get(json, "id"));
            profile.addAttribute(EurekaAttributesDefinition.USERNAME, JsonHelper.get(json, TwitterAttributesDefinition.SCREEN_NAME));
            profile.addAttribute(EurekaAttributesDefinition.FULLNAME, JsonHelper.get(json, TwitterAttributesDefinition.NAME));
        }
        return profile;
    }
@ Override protected UserProfile extractUserProfile ( final String body ) { final TwitterProfile profile = new TwitterProfile ( ) ; final JsonNode json = JsonHelper . getFirstNode ( body ) ; if ( json != null ) { profile . setId ( JsonHelper . get ( json , "id" ) ) ; profile . addAttribute ( EurekaAttributesDefinition . USERNAME , JsonHelper . get ( json , TwitterAttributesDefinition . SCREEN_NAME ) ) ; profile . addAttribute ( EurekaAttributesDefinition . FULLNAME , JsonHelper . get ( json , TwitterAttributesDefinition . NAME ) ) ; } return profile ; }
Returns the user's profile using the attributes that Eureka! Clinical
expects.

@param body the JSON response from the user profile request.

@return the user's profile.
Returns the user s profile using the attributes that Eureka! Clinical expects .