Return the one class if configured, otherwise default

def get_genericpage(cls, kb_app):
        """ Return the one class if configured, otherwise default """

        # Presumes the registry has been committed
        q = dectate.Query('genericpage')
        klasses = sorted(q(kb_app), key=lambda args: args[0].order)
        if not klasses:
            # The site doesn't configure a genericpage,
            return Genericpage
        else:
            return klasses[0][1]