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