/** * Transform a domain policy rule to a user interface object * * @param policyRule the domain object * @return the user interface object */ @Override public U toUIModel(P policyRule) { Annotation annotation = policyRule.getClass().getAnnotation(getAnnotationClass()); List<FieldRuleProperty> properties = getUiProperties(policyRule); U rule = buildUiModel((A) annotation, policyRule, properties); return rule; }