public void registerMessagingServiceCallback(String consumerKey, String consumerSecret, String callback)
throws Exception
{
ClientRequest request = new ClientRequest(MessagingServiceCallbackRegistrationURL);
String base64Credentials = new String(Base64.encodeBytes("admin:admin".getBytes()));
request.header("Authorization", "Basic " + base64Credentials);
request.formParameter("consumer_id", consumerKey);
request.formParameter("consumer_secret", consumerSecret);
request.formParameter("callback_uri", callback);
ClientResponse<?> response = null;
try {