code: def add_bundle(self, prov_bundle, identifier):
          
          if self.abstract:
              raise AbstractDocumentException()
  
          self._api.add_bundle(self.id, prov_bundle.serialize(), identifier)
docs: Verbose method of adding a bundle.
  
          Can also be done as:
            >>> api = Api()
            >>> document = api.document.get(148)
            >>> document.bundles['identifier'] = prov_bundle
  
          :param prov_bundle: The bundle to be added
          :param str identifier: URI or QName for this bundle
          :type prov_bundle: :py:class:`prov.model.ProvDocument` or :py:class:`str`