private class BeforeOrAfter implements StepRunner {
public StepResult run(Method method) {
try {
method.invoke(stepsInstance);
} catch (InvocationTargetException e) {
throw new BeforeOrAfterFailed(method, e.getCause());
} catch (Throwable t) {
throw new BeforeOrAfterFailed(t);
}
return skipped();
}