Exhibit 10.2 AMENDED AND RESTATED NOTE PURCHASE AGREEMENT Dated as of August 5, 2005