Backward compatibility for Java6 (Exception methods didn't get recognized