// Build the dispatcher map
Map<Method, MethodInvoker> dispatchers = new HashMap<Method, MethodInvoker>();
for (PropertyMapper propertyMapper : propertyMappers) {
PropertyInfo info = propertyMapper.getInfo();
MethodInfo getter = info.getGetter();
if (getter != null) {
dispatchers.put((Method)getter.getMethod(), propertyMapper);
}
MethodInfo setter = info.getSetter();
if (setter != null) {
dispatchers.put((Method)setter.getMethod(), propertyMapper);
}
}
for (MethodMapper methodMapper : methodMappers) {
dispatchers.put(methodMapper.getMethod(), methodMapper);
}