title: javax.enterprise.event.Event initialization
body: <p>Hi I am following this post <a href="https://stackoverflow.com/questions/26777083/best-practice-for-rest-token-based-authentication-with-jax-rs-and-jersey">Best practice for REST token-based authentication with JAX-RS and Jersey</a> to implement a token based authentication system. When I am deploying the services, tomcat is getting started and not getting any error related auto-wiring or other, but when I am hitting a controller, I am not able to fire the event as it is showing null pointer exception for userAuthenticatedEvent. I think the event is not initialized. </p>
  
  <pre><code>@Autowired
  @AuthenticatedUser
  private Event&lt;Long&gt; userAuthenticatedEvent;
  </code></pre>