private static MemberRepr newMemberRepr(ObjectSpecification objectSpec, ObjectAssociation assoc, Set<String> actionIdsForAssociations) {
final MemberRepr memberRepr = new MemberRepr();
CssClassFacet cssClassFacet = assoc.getFacet(CssClassFacet.class);
if(cssClassFacet != null && !cssClassFacet.isNoop()) {
CssClassFacetRepr cssClassFacetRepr = new CssClassFacetRepr();
cssClassFacetRepr.value = cssClassFacet.value();
memberRepr.cssClass = cssClassFacetRepr;
}
DescribedAsFacet describedAsFacet = assoc.getFacet(DescribedAsFacet.class);
if(describedAsFacet != null && !describedAsFacet.isNoop() && !Strings.isNullOrEmpty(describedAsFacet.value())) {
DescribedAsFacetRepr describedAsFacetRepr = new DescribedAsFacetRepr();