port of libastron-cxx to java