// targetCrudController -
// the CRUD crudController for the entity to be affected.
// targetProperty -
// the property of the target entity to be completed by the
// auto-complete value.
AutoCompleteController autoController = new JsfAutoCompleteController(
Specialty.class, "name", dataSource, controller, "type");
// Add to the auto-complete map...
// This will be accessed via the field.xhtml as the AutoComplete
// crudController for the associated target property.