requestRecorder = new DefaultContainerRecorder(new DefaultPicoContainer());
sessionRecorder = new DefaultContainerRecorder(new DefaultPicoContainer());
// create and populate request scope
InputStreamReader requestScopeScript = new InputStreamReader(Thread.currentThread().getContextClassLoader().getResourceAsStream(REQUEST_CONFIG));
XStreamContainerBuilder requestPopulator = new XStreamContainerBuilder(requestScopeScript, Thread.currentThread().getContextClassLoader());
requestPopulator.populateContainer(requestRecorder.getContainerProxy());
// create and populate session scope
InputStreamReader sessionScopeScript = new InputStreamReader(Thread.currentThread().getContextClassLoader().getResourceAsStream(SESSION_CONFIG));
XStreamContainerBuilder sessionPopulator = new XStreamContainerBuilder(sessionScopeScript, Thread.currentThread().getContextClassLoader());
sessionPopulator.populateContainer(sessionRecorder.getContainerProxy());
}