java version of the events SDK