if (this.requestProcessor != null) {
return;
}
try {
this.requestProcessor = new RequestProcessor(WebApplication.get().getServletContext(), sitemapPath,
WebAppContextUtils.getCurrentWebApplicationContext());
} catch (SitemapNotFoundException e) {
throw new CocoonRuntimeException("Can't initialize Cocoon sitemap.", e);
} catch (InvalidBaseUrlException e) {
throw new CocoonRuntimeException("Invalid base URL for the Cocoon sitemap.", e);