JNI adapter to create Java HepReps from C++.