try {
collConfig = (CollectionConfig) Configurator.configure(confFile);
String prefix = collConfig.getPrefix();
context.setAttribute(Globals.INTERFACE_KEY + prefix, collConfig.getUserInterface());
DataSourceConfig dsc = collConfig.getDataSource();
dsc.setPathPrefix(context.getRealPath("/"));
context.setAttribute(Globals.DATA_SOURCE_KEY + prefix, dsc);
ParameterMapFactory pmf = ParameterMapFactory.newInstance();
pmf.registerParameterMap(Globals.NAVIGATE_ACTION, collConfig.getDigitalImage());
// TODO: generalize this