/*
* Load host description from xregistry and add to interpreter
*/
LeadResourceMapping mapping = null;
String host = this.resourceSelectionComboBox.getText();
if (host != null && !host.isEmpty()) {
System.out.println("YEAHHH");
XRegistryAccesser xregistryAccesser = new XRegistryAccesser(this.engine);
HostDescriptionRegistrationWindow hostWindow = HostDescriptionRegistrationWindow.getInstance();
if (!hostWindow.isEngineSet()) {
hostWindow.setXBayaEngine(this.engine);
}
HostBean hostBean = xregistryAccesser.getHostBean(host);
mapping = new LeadResourceMapping(host);
try{
mapping.setGatekeeperEPR(new URI(hostBean.getGateKeeperendPointReference()));
}catch(Exception e){
this.engine.getErrorWindow().error(e);
}
}
final LeadResourceMapping resourceMapping = mapping;
final String topicString = topic;
new Thread() {
/**
* @see java.lang.Thread#run()
*/