Action was only undertaken to replace lead mains pipes in a large Tralee, Co Kerry, estate where lead in drinking water had been four times the accepted norm in response to "constant pressure" from the Environmental Protection Agency, a court has been told.