trying to avoid some hacking JNI logic.
Authored by: lomecb 2010-05-04
Parent: [r1493]
Child: [r1495]