timob-14610: change "client" to protected variable so developers can customize this class.