Use new method to check class in classpath