-------------------- Called from C --------------------
XXX Check security, add guard or other protection
It's better to do it the other way - on init 'push' AprImpl into
the native library, and have native code call instance methods.