wrapper for using java