Promise/deferred framework for Java