this.generatedFiles = new File[count];
}
public File[] generate(DBBroker broker, Collection collection, String xqueryContent) throws SAXException {
try {
DocumentSet docs = collection.allDocs(broker, new DefaultDocumentSet(), true);
XQuery service = broker.getXQueryService();
XQueryContext context = service.newContext(AccessContext.TEST);
context.declareVariable("filename", "");
context.declareVariable("count", "0");
context.setStaticallyKnownDocuments(docs);