try {
probeBuilder = (TestProbeBuilder) m.invoke(testInstance, defaultProbeBuilder);
}
// CHECKSTYLE:SKIP : catch all wanted
catch (Exception e) {
throw new ExamConfigurationException("Invoking custom probe hook "
+ m.getName() + " failed", e);
}
if (probeBuilder != null) {
return probeBuilder;
}
else {
throw new ExamConfigurationException("Invoking custom probe hook "
+ m.getName() + " succeeded but returned null");
}
}
}
LOG.debug("No User defined probe hook found");