code: public static final StyleMap assignDOM(Document doc, String encoding, NetworkProcessor network,
              URL base, MediaSpec media, boolean useInheritance, final MatchCondition matchCond) {
  
          SourceData pair = new SourceData(base, network, media);
  
          Traversal<StyleSheet> traversal = new CSSAssignTraversal(doc, encoding,
                  pair, NodeFilter.SHOW_ELEMENT);
  
          StyleSheet style = (StyleSheet) getRuleFactory().createStyleSheet()
                  .unlock();
          traversal.listTraversal(style);
  
          Analyzer analyzer = new Analyzer(style);
          if (matchCond != null) {
              analyzer.registerMatchCondition(matchCond);
          }
          return analyzer.evaluateDOM(doc, media, useInheritance);
      }
docs: This is the same as {@link CSSFactory#assignDOM(Document, String, URL, MediaSpec, boolean)}
  with the possibility of specifying a custom network processor for obtaining data from URL
  resources.
  
  @param doc
  DOM tree
  @param encoding
  The default encoding used for the referenced style sheets
  @param network
  Custom network processor
  @param base
  Base URL against which all files are searched
  @param media
  Current media specification used for evaluating the media queries
  @param useInheritance
  Whether inheritance will be used to determine values
  @param matchCond
  The match condition to match the against.
  @return Map between DOM element nodes and data structure containing CSS
  information