public function setAllowOverride($allowOverride)
    {
        if ($this->locked) {
            throw new Exception\LockedContainerException();
        }

        $this->allowOverride = (bool) $allowOverride;

        return $this;
    }