if (uriBaseName == null) {
if (exportManager.isExportLink(cms, cms.getRequestContext().getUri())) {
uriBaseName = exportManager.getRfsName(cms, cms.getRequestContext().getUri());</BUG>
} else {
uriBaseName = exportManager.getVfsPrefix() + cms.getRequestContext().getUri();
<BUG>}
exportManager.cacheOnlineLink(exportManager.getCacheKey(
cms.getRequestContext().getSiteRoot(),
cms.getRequestContext().getUri()), uriBaseName);</BUG>
}

if (uriBaseName == null) {
CmsResource resource = null;
try {
resource = cms.readResource(cms.getRequestContext().getUri());
} catch (CmsException e) {
LOG.error(e.getLocalizedMessage(), e);
}
if ((resource != null) && exportManager.isExportLink(cms, resource)) {
uriBaseName = exportManager.getRfsName(cms, cms.getRequestContext().getUri());
} else {
uriBaseName = exportManager.getVfsPrefix() + cms.getRequestContext().getUri();
}
exportManager.cacheOnlineLink(cacheKey, uriBaseName);
}
