//
// Install listeners found on the classes
//
for (IClass cls : tr.getTestClasses()) {
Listeners l = (Listeners) cls.getRealClass().getAnnotation(Listeners.class);
if (l != null) {
Class<? extends ITestNGListener>[] classes = l.value();
for (Class<? extends ITestNGListener> c : classes) {
Object listener = ClassHelper.newInstance(c);
if (listener instanceof IMethodInterceptor) {
tr.setMethodInterceptor((IMethodInterceptor) listener);
} else if (listener instanceof ISuiteListener) {