Adapted to ClientPooler refactoring.