// permanentlyHide(ID_ENTITY_TITLE_NULL);
}
private ChoiceProvider<ObjectAdapterMemento> providerForObjectAutoComplete() {
final EntityModel entityModel = getScalarModel();
return new ObjectAdapterMementoProviderAbstract(getScalarModel()) {
private static final long serialVersionUID = 1L;
@Override
protected List<ObjectAdapterMemento> obtainMementos(String term) {
final ObjectSpecification typeOfSpecification = entityModel.getTypeOfSpecification();
final AutoCompleteFacet autoCompleteFacet = typeOfSpecification.getFacet(AutoCompleteFacet.class);
final List<ObjectAdapter> results = autoCompleteFacet.execute(term);
return Lists.transform(results, ObjectAdapterMemento.Functions.fromAdapter());
}