HttpServletResponse res,
String rootPath) {
try {
CmsSite errorSite = OpenCms.getSiteManager().getSiteForRootPath(rootPath);
cms.getRequestContext().setSiteRoot(errorSite.getSiteRoot());
<BUG>String relPath = cms.getRequestContext().removeSiteRoot(rootPath);
cms.getRequestContext().setUri(relPath);</BUG>
OpenCms.getResourceManager().loadResource(cms, cms.readResource(relPath), req, res);
<BUG>return true;
} catch (Throwable e) {</BUG>
LOG.error(e.getMessage(), e);

HttpServletResponse res,
String rootPath) {
try {
CmsSite errorSite = OpenCms.getSiteManager().getSiteForRootPath(rootPath);
cms.getRequestContext().setSiteRoot(errorSite.getSiteRoot());
String relPath = cms.getRequestContext().removeSiteRoot(rootPath);
if (cms.existsResource(relPath)) {
cms.getRequestContext().setUri(relPath);
OpenCms.getResourceManager().loadResource(cms, cms.readResource(relPath), req, res);
return true;
} else {
return false;
}
} catch (Throwable e) {
