title: what is the best way to retrieve a node in adobe cq5?
body: <p>What are the different ways to retrieve a node in adobe cq5 and out of those which has to prefer.</p>
  
  <p>I knows three method only one is through session , request and another one is through resourceResolver.
  Here are those..</p>
  
  <pre><code>Node rootNode = session.getNode(path);  
  by request
  Node currentNode = request.getResource().adaptTo(Node.class);
  
  by resourceResolver
  
      String resourcePath = "path/to/resource";
      Node.node = resourceResolver.getResource(resourcePath).adaptTo(Node.class);
  </code></pre>
  
  <p>Out of these which one one is best way to retrieve and why ? </p>