title: Can not find getFlash() method in Myfaces
body: <pre><code>FacesContext.getCurrentInstance().getExternalContext().getFlash()
  </code></pre>
  
  <p>I am trying to use above code seems like <code>getFlash()</code> does not exist in JSF2 implementation of Myfaces. How how can I access it.</p>
  
  <p>Above line gives me this error</p>
  
  <pre><code>The method getFlash() is undefined for the type Object
  </code></pre>
  
  <p>Here are my imports no issues with them</p>
  
  <pre><code>import javax.faces.context.FacesContext;
  import javax.faces.context.Flash;
  </code></pre>