// Get remote service container adapter
IRemoteServiceContainerAdapter containerAdapter = (IRemoteServiceContainerAdapter) container
.getAdapter(IRemoteServiceContainerAdapter.class);
// Register remote service
serviceRegistration = containerAdapter.registerRemoteService(
new String[] { IHello.class.getName() }, new Hello(), null);
System.out.println("IHello RemoteService registered");
}