Reference annotation = method.getAnnotation(Reference.class);
if (annotation == null) {
return; // Not a reference annotation.
}
if (!JavaIntrospectionHelper.isSetter(method)) {
throw new IllegalReferenceException("Annotated method is not a setter: " + method, method);
}
String name = annotation.name();
if ("".equals(name)) {
name = JavaIntrospectionHelper.toPropertyName(method.getName());
// When the name is not specified, prefix the computed name with the class name