System.out.println("Starting remoting server with locator uri of: " + locatorURI);
connector = new Connector();
connector.setInvokerLocator(locator.getLocatorURI());
connector.start();
ServerInvocationHandler invocationHandler = new ErrorInvocationHandler();
// first parameter is sub-system name. can be any String value.
connector.addInvocationHandler("test", invocationHandler);
}