code: public void addCSSClassOrLogError(CSSClass cls) {
      try {
        cssman.addClass(cls);
      }
      catch(CSSNamingConflict e) {
        LoggingUtil.exception(e);
      }
    }
docs: Convenience method to add a CSS class or log an error.
  
  @param cls CSS class to add.