THE MAINSTAY FUNDS AMENDED AND RESTATED MANAGEMENT AGREEMENT