Update RegisterEvents.java