code: private static void generateContextDiagrams(RootDoc root, Options opt, String outputFolder)
  	    throws IOException {
          Set<ClassDoc> classDocs = new TreeSet<ClassDoc>(new Comparator<ClassDoc>() {
              public int compare(ClassDoc cd1, ClassDoc cd2) {
                  return cd1.name().compareTo(cd2.name());
              }
          });
          for (ClassDoc classDoc : root.classes())
              classDocs.add(classDoc);
  
  	ContextView view = null;
  	for (ClassDoc classDoc : classDocs) {
  	    try {
  		if(view == null)
  		    view = new ContextView(outputFolder, classDoc, root, opt);
  		else
  		    view.setContextCenter(classDoc);
  		UmlGraph.buildGraph(root, view, classDoc);
  		runGraphviz(opt.dotExecutable, outputFolder, classDoc.containingPackage().name(), classDoc.name(), root);
  		alterHtmlDocs(opt, outputFolder, classDoc.containingPackage().name(), classDoc.name(),
  			classDoc.name() + ".html", Pattern.compile(".*(Class|Interface|Enum) " + classDoc.name() + ".*") , root);
  	    } catch (Exception e) {
  		throw new RuntimeException("Error generating " + classDoc.name(), e);
  	    }
  	}
      }
docs: Generates the context diagram for a single class