title: Using currentNode with design dialog
body: <p>I'm doing a simple CQ include which includes my component. </p>
  
  <pre><code>&lt;cq:include path="banner" resourceType="generic/components/content/banner" /&gt;
  </code></pre>
  
  <p>But instead of using a content dialog I am using a design dialog. I understand the design dialog properties are all stored under <strong>/etc/designs/default.</strong> So if I try to access the current node object I.E. use:</p>
  
  <pre><code>&lt;%= currentNode.getName() %&gt;
  </code></pre>
  
  <p>I get a null pointer exception. Why would this be? Isn't there still a node for the design dialogs. Ideally I'm trying to use:</p>
  
  <pre><code>&lt;%= currentNode.getIdentifier() %&gt;
  </code></pre>
  
  <p>But found out I can't even access the currentNode it just throws a null pointer. Any tips on getting around this, is there another route I need to go to get the currentNode via design dialogs? Any help is greatly appreciated!</p>