code: public void setMediaText(final String mediaText) {
          try {
              final CSSOMParser parser = new CSSOMParser();
              final MediaQueryList sml = parser.parseMedia(mediaText);
              media_ = new MediaListImpl(sml);
          }
          catch (final IOException e) {
              // TODO handle exception
          }
      }
docs: Set the media text.
  @param mediaText the new media text