AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(conceptMapperDesc);
DictionaryResource_impl dict = (DictionaryResource_impl) ae.getResourceManager().getResource(
dictionaryResourceName);
FileOutputStream output = new FileOutputStream(args[1]);
dict.serializeEntries(output);
output.close();
ae.destroy();
// for some reason JVM won't exit normally,
// probably because CPM threads are alive?
System.exit(0);