public function addProfile($profileName, $profileDef)
    {
        $this->profiles[$profileName] = $profileDef instanceof \DataFilter\Profile
            ? $profileDef
            : new \DataFilter\Profile($profileDef);
    }