code: public String getState() throws CmsException {
  
          if (CmsStringUtil.isNotEmpty(getParamResource())) {
              CmsResource file = getCms().readResource(getParamResource(), CmsResourceFilter.ALL);
              if (getCms().isInsideCurrentProject(getParamResource())) {
                  return key(Messages.getStateKey(file.getState()));
              } else {
                  return key(Messages.GUI_EXPLORER_STATENIP_0);
              }
          }
          return "+++ resource parameter not found +++";
      }
docs: Gets a formatted file state string.<p>
  
  @return formatted state string
  
  @throws CmsException if something goes wrong