It seems that the algorithm, outlined by me in the kaitai-io/kaitai_struct_doc#31, no longer works because there is no script build-jvm-compiler (which is called from tests/build-compiler) in the project tree. So I can't test my changes in kaitai-io/kaitai_struct_compiler#197.
@GreyCat, @generalmimon, can you assist me in testing my changes?