public function addCapabilities($capabilities)
    {
        if (is_array($capabilities)) {
            $this->capabilities = array_merge((array)$this->capabilities, (array)$capabilities);
        } else {
            $this->capabilities[] = (string)$capabilities;
        }
    }