}
@Override
public ObjectAdapter[] getAutoComplete(ObjectAdapter adapter, String searchArg) {
final List<ObjectAdapter> adapters = Lists.newArrayList();
final ActionParameterAutoCompleteFacet facet = getFacet(ActionParameterAutoCompleteFacet.class);
if (facet != null) {
final Object[] choices = facet.autoComplete(adapter, searchArg);
checkChoicesOrAutoCompleteType(getSpecificationLookup(), choices, getSpecification());
for (final Object choice : choices) {
adapters.add(getAdapterMap().adapterFor(choice));
}
}