afe.setStackTrace(cause.getStackTrace());
tr.addFailure(theClazz, afe);
} else if (cause != null) {
tr.addError(theClazz, cause);
} else {
tr.addError(theClazz, e);
}
} catch (IllegalAccessException e) {
tr.addError(theClazz, e);
} catch (IllegalArgumentException e) {
tr.addError(theClazz, e);