* @throws ResourceInitializationException
* if a failure occurs during initialization.
*/
public static void initialize(final Object component, final Map<String, Object> map)
throws ResourceInitializationException {
UimaContextAdmin context = UIMAFramework.newUimaContext(UIMAFramework.getLogger(),
UIMAFramework.newDefaultResourceManager(), UIMAFramework.newConfigurationManager());
ConfigurationManager cfgMgr = context.getConfigurationManager();
cfgMgr.setSession(context.getSession());
for (Entry<String, Object> e : map.entrySet()) {
cfgMgr.setConfigParameterValue(context.getQualifiedContextName() + e.getKey(), e.getValue());
}
initialize(component, context);
}