th.startElement(NAMESPACE, COLLECTION_NAME,
PREFIX + ":" + COLLECTION_NAME, new AttributesImpl());
this.resourcesToSax(resources, th);
th.endElement(NAMESPACE, COLLECTION_NAME,
PREFIX + ":" + COLLECTION_NAME);
th.endPrefixMapping(PREFIX);
th.endDocument();
return new ByteArrayInputStream(bOut.toByteArray());
}
private void resourcesToSax(