.setAccessToken(getAccessToken())
.buildQueryMessage();
} catch (OAuthSystemException e1) {
throw new OAuthException("An error occured while authenticating the user");
}
OAuthResourceResponse response;
try {
response = oAuthClient.resource(request, OAuth.HttpMethod.GET, OAuthResourceResponse.class);
} catch (OAuthProblemException e) {
throw new OAuthException("An error occured while authenticating the user");
} catch (OAuthSystemException e) {
throw new OAuthException("An error occured while authenticating the user");
}
return response.getBody();
}