/** * Load metadata of a given bindable class, merged with bindable attributes from * parent classes marked with {@link Bindable} as well. */ public static BindableMetadata forClassWithParents(final Class<?> clazz) { IBindableDescriptor descriptor = BindableDescriptorUtils.getDescriptor(clazz); final BindableMetadata bindable = new BindableMetadata(); bindable.setDescription(descriptor.getDescription()); bindable.setLabel(descriptor.getLabel()); bindable.setTitle(descriptor.getTitle()); bindable.setAttributeMetadata( asAttributeMetadata(descriptor.getAttributes())); return bindable; }