if (doCleanUp) { try { cleanup(); } finally { if (interrupted)
public void waitForProfileResponse() { if (processor == null) { return; } DistributionManager mgr = this.advisee.getDistributionManager(); try { // bug 36983 - you can't loop on a reply processor mgr.getCancelCriterion().checkCancelInProgress(null); try { processor.waitForRepliesUninterruptibly(); } catch (ReplyException e) { e.handleCause(); } } finally { processor.cleanup(); } }