// add the jcr:primaryTye
attrs = new AttributesImpl();
attrs.addAttribute(Name.NS_SV_URI, "name", "sv:name", "CDATA", JcrConstants.JCR_PRIMARYTYPE);
attrs.addAttribute(Name.NS_SV_URI, "type", "sv:type", "CDATA", "Name");
handler.startElement(Name.NS_SV_URI, "property", "sv:property", attrs);
handler.startElement(Name.NS_SV_URI, "value", "sv:value", EMPTY_ATTRS);
handler.characters(type.toCharArray(), 0, type.length());
handler.endElement(Name.NS_SV_URI, "value", "sv:value");
handler.endElement(Name.NS_SV_URI, "property", "sv:property");
if (mixins.length > 0) {