private TnsDefaultCorbaHost server;
public void start(ExtensionPointRegistry extensionPointRegistry) {
// Register our Corba host
CorbaHostExtensionPoint corbaHosts = extensionPointRegistry.getExtensionPoint(CorbaHostExtensionPoint.class);
server = new TnsDefaultCorbaHost();
if (corbaHosts.getCorbaHosts().size() > 0 && corbaHosts.getCorbaHosts().get(0) instanceof DefaultCorbaHost) {
// Set TnsDefaultCorbaHost as default when DefaultCorbaHost was registered before
corbaHosts.getCorbaHosts().add(0, server);
} else {
corbaHosts.getCorbaHosts().add(server);
}
}