return getFacet(PropertyChoicesFacet.class) != null;
}
@Override
public ObjectAdapter[] getChoices(final ObjectAdapter ownerAdapter) {
final PropertyChoicesFacet propertyChoicesFacet = getFacet(PropertyChoicesFacet.class);
final Object[] pojoOptions = propertyChoicesFacet == null ? null : propertyChoicesFacet.getChoices(ownerAdapter, getSpecificationLookup());
if (pojoOptions != null) {
List<ObjectAdapter> adapters = Lists.transform(
Lists.newArrayList(pojoOptions), ObjectAdapter.Functions.adapterForUsing(getAdapterManager()));
return adapters.toArray(new ObjectAdapter[]{});
}