+ setResult(result, true);
+ }
+
+ /**
+ * Sets the result of the operation. Depending on the <code>notify</code>
+ * parameter the listeners are notified. You have to call this method with
+ * <code>notify = true</code> after your result is completed, otherwise
+ * clients will block endlessly!
+ *
+ * @param result
+ * The result of the operation
+ * @param notify
+ * <code>true</code> to finalize the result and notify all
+ * listeners, <code>false</code> if something in the result
+ * might still change
+ */
+ void setResult(R result, boolean notify) {