public File[] generate(org.xmldb.api.base.Collection collection, String xqueryContent) throws SAXException {
String query = IMPORT + xqueryContent;
System.out.println("query: " + query);
try {
XQueryService service = (XQueryService) collection.getService("XQueryService", "1.0");
service.declareVariable("filename", "");
service.declareVariable("count", "0");
CompiledExpression compiled = service.compile(query);
for (int i = 0; i < count; i++) {
generatedFiles[i] = File.createTempFile(prefix, ".xml");