Java 8 completion stage implementation