The Java side of record, build, diff and bench. A generated driver calls the unit’s static methods by reflection: compiled with the original sources to record, and with the JNI wrapper classes over the Rust library to diff.