replace deprecated pooler.get_pool() by registry()