Custom extension to the Indri JNI interface