@utilities.arguments_not_none<EOL><INDENT>def get_composition_query_session_for_repository(self, repository_id, proxy):<DEDENT>
if not self.supports_composition_query():<EOL><INDENT>raise errors.Unimplemented()<EOL><DEDENT>return sessions.CompositionQuerySession(repository_id, proxy, self._runtime)<EOL>
Gets a composition query session for the given repository.

        arg:    repository_id (osid.id.Id): the ``Id`` of the repository
        arg:    proxy (osid.proxy.Proxy): a proxy
        return: (osid.repository.CompositionQuerySession) - a
                ``CompositionQuerySession``
        raise:  NotFound - ``repository_id`` not found
        raise:  NullArgument - ``repository_id`` or ``proxy`` is
                ``null``
        raise:  OperationFailed - ``unable to complete request``
        raise:  Unimplemented - ``supports_composition_query()`` or
                ``supports_visible_federation()`` is ``false``
        *compliance: optional -- This method must be implemented if
        ``supports_composition_query()`` and
        ``supports_visible_federation()`` are ``true``.*