code: def get_genericpage(cls, kb_app):
          
  
          # 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]
docs: Return the one class if configured, otherwise default