String (final Class aClass) { for (Class c = aClass; c != null; c = c.getSuperclass()) { final String property = myClass2InplaceProperty.get(c.getName()); if (property != null) { return property; } } return null; }