AggregateBuilder builder = new AggregateBuilder();
File directoryCtakes = new File("../ctakes-core/desc/analysis_engine");
File fileCtakes = new File(directoryCtakes, "TokenizerAnnotator.xml");
XMLParser parser = UIMAFramework.getXMLParser();
XMLInputSource source = new XMLInputSource(fileCtakes);
builder.add(parser.parseAnalysisEngineDescription(source));
File directory = new File("desc/analysis_engine");
File file = new File(directory, "SentenceDetectorAnnotator.xml");
source = new XMLInputSource(file);
builder.add(parser.parseAnalysisEngineDescription(source));
AnalysisEngine engine = builder.createAggregate();