code: private CmsMessages getMessages() {
  
          if (m_messages == null) {
              if (m_cms != null) {
                  m_messages = Messages.get().getBundle(OpenCms.getWorkplaceManager().getWorkplaceLocale(m_cms));
              } else {
                  m_messages = Messages.get().getBundle();
              }
          }
          return m_messages;
      }
docs: Returns the message bundle for formatting dates, depends on the request locale.<p>
  
  @return the message bundle for formatting dates