What is happening in the following snippet?
<p>I am not able to understand the following snipet. I mean what is happening exactly. Can any one explain me what is happening?</p>

<p>This is the snippet:</p>

<pre><code>protected NodeService getUnprotectedNodeService()

   { 

      if (this.unprotectedNodeService == null)
          {
         this.unprotectedNodeService = (NodeService) FacesHelper.getManagedBean(FacesContext.getCurrentInstance(), "nodeService");
      }
      return this.unprotectedNodeService;
   }
</code></pre>
