public void testWithWriting() throws Exception{ Set set = sr.parse(); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); FileWriter fw = new FileWriter("/tmp/"+st.getId().replaceAll("[.]","_")+".hbm.xml"); vh.invoke("ome/dsl/mapping.vm",fw); fw.flush(); fw.close(); }  }
public void testWithWriting() throws Exception { Set set = sr.parse(); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type", st);   StringWriter sw = new StringWriter(); vh.invoke("ome/dsl/mapping.vm", sw); sw.flush(); sw.close();   }  }
	public void testWithWriting() throws Exception{		Set set = sr.parse();		for (Iterator it = set.iterator(); it.hasNext();) {			SemanticType st = (SemanticType) it.next();			VelocityHelper vh = new VelocityHelper();			vh.put("type",st);			FileWriter fw = new FileWriter("/tmp/"+st.getId().replaceAll("[.]","_")+".hbm.xml");			vh.invoke("ome/dsl/mapping.vm",fw);			fw.flush();			fw.close();		}			}