def register_endpoint(self, klass, **options):
        kwargs = self.get_endpoint_kwargs(**options)
        endpoint = klass(**kwargs)
        if kwargs in 'resource_adaptor':
            self.registry[kwargs['resource_adaptor']] = endpoint
        self.directory_resource.register_resource(endpoint)
        return endpoint
    
    #TODO review the following for inclusion into RootEndpoint
dataset/ETHPy150Open zbyte64/django-hyperadmin/hyperadmin/sites.py/BaseResourceSite.register_endpoint/swapped operands of `in`