uimaContext = UIMAFramework.newUimaContext(UIMAFramework.getLogger(), aResourceManager,
UIMAFramework.newConfigurationManager());
// if CpeDescription contains a ResourceManagerConfiguration, parse it and use it
// to configure the ResourceManager
CpeResourceManagerConfiguration resMgrCfgDesc = aDescriptor.getResourceManagerConfiguration();
if (resMgrCfgDesc != null) {
ResourceManagerConfiguration resMgrCfg;
try {
if (resMgrCfgDesc.get().length() > 0) {
String descriptorPath = CPMUtils.convertToAbsolutePath(System.getProperty("CPM_HOME"),
CPM_HOME, resMgrCfgDesc.get());
resMgrCfg = UIMAFramework.getXMLParser().parseResourceManagerConfiguration(
new XMLInputSource(descriptorPath));
aResourceManager.initializeExternalResources(resMgrCfg, "/", null);
}
} catch (InvalidXMLException e) {