Promise/Deferred library for Java