filterWith to accept FuncWithInitialize instead of two different Functions for init and process.
changed other javaApi like flatMapWith and foreachWith to accept just one **WithInitialize