callbackConnector.create();
callbackConnector.addInvocationHandler("sample", new FactoryConfigSample.SampleInvocationHandler());
callbackConnector.start();
// Add callback handler.
CallbackHandler callbackHandler = new FactoryConfigSample.CallbackHandler();
String callbackHandleObject = "myCallbackHandleObject";
client.addListener(callbackHandler, callbackLocator, callbackHandleObject);
client.disconnect();
callbackConnector.stop();