code: public static String getStateStyle(CmsResourceState state) {
  
          if (state.equals(CmsResourceState.STATE_NEW)) {
              return CSS.stateNew();
          } else if (state.equals(CmsResourceState.STATE_DELETED)) {
              return CSS.stateDeleted();
          } else if (state.equals(CmsResourceState.STATE_CHANGED)) {
              return CSS.stateChanged();
          }
          return CSS.noState();
      }
docs: Returns the text style for a given resource state.<p>
  
  @param state the resource state
  
  @return the style name for the resource's state