public String getCaption() { // if there is a member formatter for the members level, // we will call this interface to provide the display string MemberFormatter mf = getLevel().getMemberFormatter(); if (mf != null) { return mf.formatMember(this); } // fallback if formatter is null final String caption = super.getCaption(); return (caption != null) ? caption : getName(); }