code: public static String getStateName(CmsResourceState state) {
  
          if (state.equals(CmsResourceState.STATE_NEW)) {
              return Messages.get().key(Messages.GUI_RESOURCE_STATE_NEW_0);
          } else if (state.equals(CmsResourceState.STATE_DELETED)) {
              return Messages.get().key(Messages.GUI_RESOURCE_STATE_DELETED_0);
          } else if (state.equals(CmsResourceState.STATE_CHANGED)) {
              return Messages.get().key(Messages.GUI_RESOURCE_STATE_CHANGED_0);
          } else if (state.equals(CmsResourceState.STATE_UNCHANGED)) {
              return Messages.get().key(Messages.GUI_RESOURCE_STATE_UNCHANGED_0);
          }
          return "";
      }
docs: Returns the human-readable name of a resource state.<p>
  
  @param state the resource state
  
  @return the human-readable name of the code