@utilities.remove_null_proxy_kwarg<EOL><INDENT>@utilities.arguments_not_none<EOL>def get_resource_query_session_for_bin(self, bin_id):<DEDENT>
if not self.supports_resource_query():<EOL><INDENT>raise errors.Unimplemented()<EOL><DEDENT>return sessions.ResourceQuerySession(bin_id, runtime=self._runtime)<EOL>
Gets a resource query session for the given bin.

        arg:    bin_id (osid.id.Id): the ``Id`` of the bin
        return: (osid.resource.ResourceQuerySession) - ``a
                ResourceQuerySession``
        raise:  NotFound - ``bin_id`` not found
        raise:  NullArgument - ``bin_id`` is ``null``
        raise:  OperationFailed - ``unable to complete request``
        raise:  Unimplemented - ``supports_resource_query()`` or
                ``supports_visible_federation()`` is ``false``
        *compliance: optional -- This method must be implemented if
        ``supports_resource_query()`` and
        ``supports_visible_federation()`` are ``true``.*