// => use TreeMap not HashMap
Map<String, Method> getterMapping = new TreeMap();
Map<String, Method> setterMapping = new TreeMap();
fillSettersAndGetters(obj.getClass(), setterMapping, getterMapping);
getterMapping.keySet().retainAll(setterMapping.keySet());
for (Entry<String, Method> getter : getterMapping.entrySet()) {
Method setter = setterMapping.get(getter.getKey());
// getter object should be castable to setter type:
if (!setter.getParameterTypes()[0].isAssignableFrom(