/** Initialization common to both activatable and transient instances. */
private void doInit(Configuration config) throws Exception {
uuid = net.jini.id.UuidFactory.generate();
Exporter exporter = (Exporter) Config.getNonNullEntry(
config, TEST_SERVICE, "exporter", Exporter.class,
new BasicJeriExporter(
TcpServerEndpoint.getInstance(0), new BasicILFactory(), false, true));
System.out.println("service exporter is: "
+ exporter);
// Export server instance and get its reference
serverStub = (TestService)exporter.export(this);
System.out.println("Service stub is: " + serverStub);
// Store class loader ref in shared map
TestServiceSharedMap.storeClassLoader(
uuid, this.getClass().getClassLoader());