Java wrapper for NS API