Java LibXin: use inner class instead of static interface as callbacks