title: To get current Instance of the session scoped bean in Jsf 2.0
body: <p>i referred to this question  and i've a similar problem 
  <a href="https://stackoverflow.com/questions/4278861/jsf-get-the-sessionscoped-bean-instance">JSF - Get the SessionScoped Bean instance</a></p>
  
  <p>I want to get the current instance of a managed bean in another managed bean. I've a SuperBean which is extended in a base Class - baseBean.
  I set the value of a list - itemList in baseBean. The getter setter of the list are in SuperBean and I should use this SuperBean in my BackingBean to get the value of the itemList.</p>
  
  <p>I tried using - </p>
  
  <pre><code>     Application app = FacesContext.getCurrentInstance().getApplication();
        ValueBinding vb = app.createValueBinding("#{superbean}");
        SuperClass superclass = (SuperClass) vb.getValue(FacesContext.getCurrentInstance());
  </code></pre>
  
  <p>When I try to print superclass.getItems(); - It gives only this - []</p>
  
  <p>And also this - </p>
  
  <pre><code>  SuperClass superclass = (SuperClass)FacesContext.getCurrentInstance().
                           getExternalContext().getSessionMap().get("superbean");
  </code></pre>
  
  <p>When I try to print with this - It throws exception as my superbean entry is not present in the sessionMap even though the entry is placed in facesConfig and also as @ManagedBean and @sessionscoped</p>
  
  <p>Kindly help me resolve this.</p>