*
* @return id of the component to bind the field.
*/
private String extractComponentId(Field field) {
// Try the id from UiField annotation.
UiField annotation = field.getAnnotation(UiField.class);
String componentId = annotation.value();
if (componentId.length() == 0) {
// Default to the field name instead of annotated id.
componentId = field.getName();
}