Implement filtering in Connection::listImpl