}
if (!consumerDataObj.isUserAuthenticated()) {
String url = createOAuthUrlString(
json, consumerDataObj.getRpcServerUrl(), consumerDataObj.getAccessor());
LOG.info("JSON request to be sent: " + json);
HttpMessage request = new HttpMessage("POST", new URL(url), bodyStream);
request.headers.add(
new SimpleEntry<String, String>(HttpMessage.CONTENT_TYPE, JSON_MIME_TYPE));
request.headers.add(new SimpleEntry<String, String>("oauth_version", "1.0"));
responseStream =
httpFetcher.execute(request, Collections.<String, Object>emptyMap()).getBody();