code: def assign_composition_to_repository(self, composition_id, repository_id):
          
          # Implemented from template for
          # osid.resource.ResourceBinAssignmentSession.assign_resource_to_bin
          mgr = self._get_provider_manager('REPOSITORY', local=True)
          lookup_session = mgr.get_repository_lookup_session(proxy=self._proxy)
          lookup_session.get_repository(repository_id)  # to raise NotFound
          self._assign_object_to_catalog(composition_id, repository_id)
docs: Adds an existing ``Composition`` to a ``Repository``.
  
          arg:    composition_id (osid.id.Id): the ``Id`` of the
                  ``Composition``
          arg:    repository_id (osid.id.Id): the ``Id`` of the
                  ``Repository``
          raise:  AlreadyExists - ``composition_id`` already assigned to
                  ``repository_id``
          raise:  NotFound - ``composition_id`` or ``repository_id`` not
                  found
          raise:  NullArgument - ``composition_id`` or ``repository_id``
                  is ``null``
          raise:  OperationFailed - unable to complete request
          raise:  PermissionDenied - authorization failure
          *compliance: mandatory -- This method must be implemented.*