if (type == scenarioType) {
if (stage == Stage.BEFORE) {
steps.add(createBeforeOrAfterStep(stage, method));
}
if (stage == Stage.AFTER) {
Outcome scenarioOutcome = scenarioOutcome(method, annotationClass);
for (Outcome outcome : outcomes) {
if (outcome.equals(scenarioOutcome)) {
steps.add(createBeforeOrAfterStep(stage, method, outcome));
}
}