Working on Dataflow in Java