return findChoices(target, args);
}
private ObjectAdapter[] findChoices(final ObjectAdapter target, final List<ObjectAdapter> args) {
final List<ObjectAdapter> adapters = Lists.newArrayList();
final ActionParameterChoicesFacet facet = getFacet(ActionParameterChoicesFacet.class);
if (facet != null) {
final Object[] choices = facet.getChoices(target, args);
checkChoicesOrAutoCompleteType(getSpecificationLookup(), choices, getSpecification());
for (final Object choice : choices) {
ObjectAdapter adapter = choice != null? getAdapterMap().adapterFor(choice) : null;
adapters.add(adapter);
}