Ban hopes for two-state solution in Mideast by end of 2012