writerOut.println("<ASTMetrics>");
Iterator<ClassData> it = G.v().ASTMetricsData.iterator();
while(it.hasNext()){
//each is a classData object
ClassData cData = it.next();
writerOut.println(cData.toString());
}
writerOut.println("</ASTMetrics>");
writerOut.flush();
streamOut.close();