@Override
public Object[] getChoices(final ObjectAdapter adapter, final SpecificationLoader specificationLookup) {
final FacetHolder facetHolder = getFacetHolder();
final FacetedMethod noap = (FacetedMethod) facetHolder;
final ObjectSpecification noSpec = getSpecification(noap.getType());
final ChoicesFacet choicesFacet = noSpec.getFacet(ChoicesFacet.class);
if (choicesFacet == null) {
return new Object[0];
}
return choicesFacet.getChoices(adapter);
}