Remove try/multi-catch block for java 1.6 compatibility.