}
@Override
public String apply(Method method) {
String key;
Notify notifyAnno = AnnotationUtils.find(method, Notify.class);
if (null != notifyAnno) {
key = notifyAnno.value();
} else {
key = methodNameToNotificationKey(method.getName());
}
return key;