We return the actual embedded resource as allowedValues when they are available.
As there are drop-down lists where no embedded information is given
(e.g., assignee, responsible), we conditionally extract group
information from embedded resources.
ng-options="option.name group by customEditorController.optionGroup(option) for option in customEditorController.allowedValues track by option.hrefTracker">
ng-options="option.name group by option.group for option in customEditorController.allowedValues track by option.hrefTracker">