Once the class name is found, stop looking for it.