public function getPolicy()
  {
    $policy = Policy::load($this->getName());
    if ($this->getSeverity() !== NULL) {
      $policy->setSeverity($this->getSeverity());
    }

    foreach ($this->parameters as $param => $value) {
      $info = ['default' => $value];
      $policy->addParameter($param, $info);
    }
    return $policy;
  }