protected function addGlobalCode($globalCode, $priority = PHP_INT_MAX) {
        if (!empty($globalCode)) {
            $code = new Code();
            $code->setCode($globalCode)
                 ->setPriority($priority);
            $this->builder->addGlobalCode($code);
        }
        return $this;
    }