BeanWriter writer = new BeanWriter(output);  writer.getXMLIntrospector().register(getBetwixtMapping()); writer.getXMLIntrospector().getConfiguration().setAttributesForPrimitives(true); writer.getXMLIntrospector().getConfiguration().setWrapCollectionsInElement(false); writer.getXMLIntrospector().getConfiguration().setElementNameMapper(new HyphenatedNameMapper()); writer.getBindingConfiguration().setMapIDs(false); writer.enablePrettyPrint();  return writer;
try { BeanWriter writer = new BeanWriter(output);  writer.getXMLIntrospector().register(getBetwixtMapping()); writer.getXMLIntrospector().getConfiguration().setAttributesForPrimitives(true); writer.getXMLIntrospector().getConfiguration().setWrapCollectionsInElement(false); writer.getXMLIntrospector().getConfiguration().setElementNameMapper(new HyphenatedNameMapper()); writer.getBindingConfiguration().setMapIDs(false); writer.enablePrettyPrint();  return writer; } catch (Exception ex) { throw new DdlUtilsException(ex); }
    protected BeanWriter getWriter(Writer output) throws IntrospectionException, SAXException, IOException    {        BeanWriter writer = new BeanWriter(output);        writer.getXMLIntrospector().register(getBetwixtMapping());        writer.getXMLIntrospector().getConfiguration().setAttributesForPrimitives(true);        writer.getXMLIntrospector().getConfiguration().setWrapCollectionsInElement(false);        writer.getXMLIntrospector().getConfiguration().setElementNameMapper(new HyphenatedNameMapper());        writer.getBindingConfiguration().setMapIDs(false);        writer.enablePrettyPrint();        return writer;    }