}
for (int i=0; i < queries.size(); i++) {
long start = System.currentTimeMillis();
long serializationTime = 0;
Object query = queries.get(i);
XQuery xquery;
if (query instanceof String) {
xquery = queryPool.getXQuery((String)query, baseURI);
} else if (query instanceof File) {
xquery = queryPool.getXQuery((File)query, baseURI);
} else {
xquery = null; // disable XQuery for benchmarking
}
if (isBench) {
System.out.println("query = " +query);
}
if (explain && run == 0 && xquery != null) {
System.out.println("explain = \n" + xquery.explain());
}
XQuery morpher;
if (update instanceof String) {
morpher = queryPool.getXQuery((String)update, null);
} else if (update instanceof File) {
morpher = queryPool.getXQuery((File)update, null);
} else {