Catching NoSuchMethodError