}
if (query != null && queryFile != null) {
throw new MorphlineCompilationException("Must not define both query and queryFile at the same time", config);
}
XQueryEvaluator evaluator = executable.load();
Config variables = getConfigs().getConfig(fragment, "externalVariables", ConfigFactory.empty());
for (Map.Entry<String, Object> entry : new Configs().getEntrySet(variables)) {
XdmValue xdmValue = XdmNode.wrap(new UntypedAtomicValue(entry.getValue().toString()));
evaluator.setExternalVariable(new QName(entry.getKey()), xdmValue);
}