code: public String getTitle(CmsObject cms, Locale locale) {
  
          if (m_titleKey == null) {
              return m_title;
          } else {
              return OpenCms.getWorkplaceManager().getMessages(locale).key(m_titleKey);
          }
      }
docs: Returns the element view title.<p>
  
  @param cms the cms context
  @param locale the locale
  
  @return the title