Monitor fam,
ServletContext servletContext)
throws Exception {
// let's get the parent container first
final WebApplicationContext parentContext = WebAppContextUtils.getCurrentWebApplicationContext();
final ProcessInfoProvider infoProvider = (ProcessInfoProvider) parentContext.getBean(ProcessInfoProvider.ROLE);
final Request request = ObjectModelHelper.getRequest(infoProvider.getObjectModel());
// let's determine our context url
int pos = sitemapLocation.lastIndexOf('/');
if ( sitemapLocation.lastIndexOf(File.separatorChar) > pos ) {
pos = sitemapLocation.lastIndexOf(File.separatorChar);
}