new PathQueryBinding().marshal(template.getQuery(), template.getName(), template.getQuery().getModel().getName(), writer);
PathQueryBinding.marshal(template.getQuery(), template.getName(), template.getQuery().getModel().getName(), writer);
    public static void marshal(TemplateQuery template, XMLStreamWriter writer) {        try {            writer.writeStartElement("template");            writer.writeAttribute("name", template.getName());            writer.writeAttribute("description", template.getDescription());            writer.writeAttribute("category", template.getCategory());            writer.writeAttribute("important", "" + template.isImportant());            writer.writeAttribute("keywords", template.getKeywords());                        new PathQueryBinding().marshal(template.getQuery(),                                           template.getName(),                                           template.getQuery().getModel().getName(),                                           writer);            writer.writeEndElement();        } catch (XMLStreamException e) {            throw new RuntimeException(e);        }    }