code: public String getLocalizedName(CmsMessages messages) {
  
          String nameKey = "GUI_RELATION_TYPE_" + getName() + "_0";
          return messages.key(nameKey);
      }
docs: Returns a localized name for the given relation type.<p>
  
  @param messages the message bundle to use to resolve the name
  
  @return a localized name