code: public void emitActivity(Activity p, PrintStream out) {
          HashMap<String,String> properties=new HashMap<String, String>();
  
          emitElement(p.getId(),
                      addURL(p.getId(), addActivityShape(p,addActivityLabel(p, addActivityColor(p,properties)))),
                      out);
  
          emitAnnotations("", p,out);
      }
docs: ////////////////////////////////////////////////////////////////////