@Override
public Command build(Config config, Command parent, Command child, MorphlineContext context) {
try {
return new XQuery(this, config, parent, child, context);
} catch (SaxonApiException e) {
throw new MorphlineCompilationException("Cannot compile", config, e);
} catch (IOException e) {
throw new MorphlineCompilationException("Cannot compile", config, e);
} catch (XMLStreamException e) {
throw new MorphlineCompilationException("Cannot compile", config, e);
}
}