if (annotation == null) {
return;
}
if (!Void.TYPE.equals(method.getReturnType())) {
throw new IllegalPropertyException("Method does not have void return type", method);
}
Class[] paramTypes = method.getParameterTypes();
if (paramTypes.length != 1) {
throw new IllegalPropertyException("Method must have a single parameter", method);
}
String name = getName(annotation);
if (name == null || "".equals(name)) {
name = method.getName();