public Sequence eval(Sequence<? extends Item> contextSeq, ValueSequence argv, DynamicContext dynEnv) throws XQueryException {
if(argv == null || argv.size() != 2) {
throw new IllegalStateException();
}
Item arg1 = argv.getItem(0);
String docPath = arg1.stringValue();
Item arg2 = argv.getItem(1);
String colPath = arg2.stringValue();
File docFile = new File(docPath);
if(!docFile.exists()) {
return ValueSequence.EMPTY_SEQUENCE;