void (final String moduleName, final Collection<String> classNamesIterator) { for (String className : classNamesIterator) { try { Class<?> candidateClass = Class.forName(className, false, getClassLoader()); if (isClassTestCase(candidateClass, moduleName)) { myClassSet.add(candidateClass); } } catch (Throwable e) { String message = "Cannot load class " + className + ": " + e.getMessage(); System.err.println(message); myClassLoadingErrors.add(new Throwable(message, e)); } } }