Added @XmlRootElement annotation to Event and Flow classes