Assigned mapping parameter to instance variable, preventing NullPointerException during parseEvent