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
pmf.registerParameterMap(Globals.DATA_STREAM_KEY + prefix, collConfig
.getDataStream());
context.setAttribute(Globals.PARAMETER_MAP_FACTORY_KEY + prefix, pmf);
context.setAttribute(Globals.COLLECTION_CONFIG_KEY + prefix, collConfig);