A simple promise abstraction for java