quick idea for java flow