*/
@Override
protected Statement withAfterClasses(Statement statement) {
List<FrameworkMethod> afters = getTestClass().getAnnotatedMethods(AfterClass.class);
// THere would always be atleast on method associated with the Runner, else validation would fail.
FrameworkMethod method = frameworkMethods.get(0);
// Only if the return type of the Method is not VOID, we try to determine the right loader and data files.
if (method.getMethod().getReturnType() != Void.TYPE) {
DataLoader loaderAnnotation = method.getAnnotation(DataLoader.class);
if (loaderAnnotation != null) {
determineLoader(loaderAnnotation);
} else {
loaderAnnotation = getTestClass().getJavaClass().getAnnotation(DataLoader.class);