Exhibit 10.17 AMENDED AND RESTATED CREDIT AGREEMENT