RAMALLAH , West Bank ( AP ) - President Bush on Thursday predicted that a Mideast peace treaty would be completed by the time he leaves office , but undercut that optimism with harsh criticism of Hamas militants who control part of the land that would form an eventual independent Palestine .