/* set the configuration parameters into the parsed resourceDescription
*
*/
AnalysisEngineDescription aed = (AnalysisEngineDescription) resourceDescription;
ConfigurationParameterSettings parmSettings = aed.getAnalysisEngineMetaData().getConfigurationParameterSettings();
/*
* loop thru all the parameters in the component, and set them to the possibly overridden values
*/
// for group parameters (Note: unsure if C++ actually supports group parameters ...
Map<String, NameValuePair[]> groups = parmSettings.getSettingsForGroups();
for (Map.Entry<String, NameValuePair[]> group : groups.entrySet()) {
for (NameValuePair nvp : group.getValue()) {
Object v = context.getConfigParameterValue(group.getKey(), nvp.getName());
if (null != v) {
parmSettings.setParameterValue(group.getKey(), nvp.getName(), v);
}
}
}
// This next loop for "non-group" parameters
for (NameValuePair nvp : parmSettings.getParameterSettings()) {
Object v = context.getConfigParameterValue(nvp.getName());
if (null != v) {
parmSettings.setParameterValue(nvp.getName(), v);
}
}
if (engine == null) {
UimacppEngine.configureResourceManager(System.getProperty("java.io.tmpdir"), ae