/**
  * Get execution priority of bufferized node.
  *
  * Get execution priority of bufferized node based on the node settings or configuration of the extension.
  *
  * @param \Twig_Node $node
  * @return mixed
  */
 protected function getNodeExecutionPriority(\Twig_Node $node)
 {
     if ($node instanceof BufferizeNode && !is_null($node->getPriority())) {
         return $node->getPriority();
     }
     foreach ($this->settings['nodes'] as $nodeClass => $priority) {
         if (is_a($node, $nodeClass) && !is_null($priority)) {
             return $priority;
         }
     }
     return $this->settings['defaultExecutionPriority'];
 }