Map<Field, PropertyKey> allProperties = getFieldValuesOfType(PropertyKey.class, type);
Map<Field, View> views = getFieldValuesOfType(View.class, type);
for (Map.Entry<Field, PropertyKey> entry : allProperties.entrySet()) {
PropertyKey propertyKey = entry.getValue();
Field field = entry.getKey();
Class declaringClass = field.getDeclaringClass();
if (declaringClass != null) {
propertyKey.setDeclaringClass(declaringClass);
registerProperty(declaringClass, propertyKey);
}
registerProperty(type, propertyKey);