/** * Called after a successful search. */ public void resultAvailable(Object result) { searchfut = null; delegate = (IService)result; if(fut!=null) { try { IFuture resfut = (IFuture)invoke(proxy, method, args); SResultListener.delegateFromTo(resfut, fut); } catch(Throwable t) { fut.setException(new RuntimeException(t)); } } }