AnalysisEngineDescription desc = UIMAFramework.getResourceSpecifierFactory()
.createAnalysisEngineDescription();
desc.setPrimitive(false);
// import pear specifiers
Import impPear1 = UIMAFramework.getResourceSpecifierFactory().createImport();
File import1 = new File(instPear1.getComponentPearDescPath());
impPear1.setLocation(import1.toURI().getPath());
// import main pear descriptor
Import impPear2 = UIMAFramework.getResourceSpecifierFactory().createImport();
File import2 = new File(instPear2.getComponentPearDescPath());
impPear2.setLocation(import2.toURI().getPath());
// add delegates as imports
Map delegates = desc.getDelegateAnalysisEngineSpecifiersWithImports();
delegates.put("Pear1", impPear1);
delegates.put("Pear2", impPear2);