code: public String getStateName() {
  
          CmsResourceState state = m_resource.getState();
          String name;
          if (m_request == null) {
              name = org.opencms.workplace.explorer.Messages.get().getBundle().key(
                  org.opencms.workplace.explorer.Messages.getStateKey(state));
          } else {
              name = org.opencms.workplace.explorer.Messages.get().getBundle(m_request.getLocale()).key(
                  org.opencms.workplace.explorer.Messages.getStateKey(state));
          }
          return name;
      }
docs: Returns the state name for a resource.<p>
  
  Uses default locale if request context is <code>null</code>.<p>
  
  @return the state name for that resource