XMLWriter writer = new PrettyPrintXMLWriter(w, encoding, null);
writer.startElement("jbi");
writer.addAttribute("xmlns", "http://java.sun.com/xml/ns/jbi");
writer.addAttribute("version", "1.0");
writer.startElement("services");
writer.addAttribute("binding-component", bc ? "true" : "false");
// We need to get all the namespaces into a hashmap so we
// can get the QName output correctly
Map namespaceMap = getNamespaceMap(provides, consumes);