public CAS analyzeInput(Reader input, String descriptorPath) throws InvalidXMLException,
IOException, ResourceInitializationException, AnalysisEngineProcessException {
URL url = UIMAAnalyzersUtils.class.getResource(descriptorPath);
XMLInputSource in = new XMLInputSource(url);
ResourceSpecifier specifier = UIMAFramework.getXMLParser().parseResourceSpecifier(in);
AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(specifier);
// AEProvider aeProvider = AEProviderFactory.getInstance().getAEProvider("", descriptorPath, new
// HashMap<String, Object>());
// AnalysisEngine ae = aeProvider.getAE();
CAS cas = ae.newCAS();