add java version of generator - maybe, all will be done on java