CancellableConnection () { return new CancellableConnection() { BugzillaXmlRpcRequest myRequest; @Override protected void doTest() throws Exception { // Reset information about server. myVersion = null; myAuthenticated = false; myAuthenticationToken = null; myRequest = createIssueSearchRequest(null, 0, 1, true); myRequest.execute(); } @Override public void cancel() { myRequest.cancel(); } }; }