} catch (IllegalArgumentException e) {
Args.usage(Main.class);
System.exit(1);
}
MustacheFactory mb = new DefaultMustacheFactory("templates/" + language) {
@Override
public void encode(String value, Writer writer) {
try {
writer.write(value);
} catch (IOException e) {
throw new MustacheException();
}
}
};
Mustache mustache = mb.compile(template + ".txt");
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
XPathFactory xpf = XPathFactory.newInstance();
final DocumentBuilder db = dbf.newDocumentBuilder();
final XPathExpression replyX = xpf.newXPath().compile("//a");