o.toString());
return null;
}
handle.setElem(elem);
handle.setOpMgr(opMgr);
Cybernode c = null;
for(ServiceBeanInstance sbi : opMgr.getServiceBeanInstances(elem)) {
if(o.equals(sbi.getService())) {
elem.setServiceBeanConfig(sbi.getServiceBeanConfig());
Uuid uuid = sbi.getServiceBeanInstantiatorID();
for(ServiceBeanInstantiator s : monitor.getServiceBeanInstantiators()) {
if(uuid.equals(s.getInstantiatorUuid())) {
c = (Cybernode)s;
break;
}
}
}
}
if(c!=null) {
Watchable w;
if(elem.forkService()) {
int registryPort = ((CybernodeAdmin)c.getAdmin()).getRegistryPort();
String address = c.getInetAddress().getHostAddress();
Registry registry = LocateRegistry.getRegistry(address, registryPort);
Remote r = null;
NotBoundException notBound = null;
//for(int i=0; i<3; i++) {
try {