XQueryService service = (XQueryService) collection.getService("XQueryService", "1.0");
service.declareVariable("filename", "");
service.declareVariable("count", "0");
String query = IMPORT + xqueryContent;
System.out.println("query: " + query);
CompiledExpression compiled = service.compile(query);
try {
for (int i = 0; i < count; i++) {
File nextFile = new File(directory, prefix + i + ".xml");
service.declareVariable("filename", nextFile.getName());