Set set = sr.parse();
sr.parse(); Set set = sr.process();
    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");            StringWriter sw = new StringWriter();            vh.invoke("ome/dsl/mapping.vm", sw);            sw.flush();            sw.close();            // fw.flush();            // fw.close();        }    }