Fluent java functions and futures