/**
  * parses a constant
  * @param string $key      the constant to parse
  * @param string $curBlock the current parser-block being processed
  * @return string parsed constant
  */
 protected function parseConstKey($key, $curBlock)
 {
     if ($this->securityPolicy !== null && $this->securityPolicy->getConstantHandling() === Policy::CONST_DISALLOW) {
         return 'null';
     }
     if ($curBlock !== 'root') {
         return '(defined("' . $key . '") ? ' . $key . ' : null)';
     }
     return $key;
 }