final When when = method.getAnnotation(When.class);
return when.value();
}
} else if (annotation == Then.class) {
if (method.isAnnotationPresent(Then.class)) {
final Then then = method.getAnnotation(Then.class);
return then.value();
}
}
return null;
}