public function addMapping(ImsManifestMapping $mapping)
    {
        $mappings = $this->getMappings();

        $ns = $mapping->getNamespace();

        if (isset($mappings[$ns]) === false) {
            $mappings[$ns] = $mapping;
        }

        $this->setMappings($mappings);
    }