} else {
// document is live
//if ssl, add prefix, if not, check for live mount point and apply if present
try {
String url = urlPrefix + documentId;
Policy policy = policyManager.getPolicy(accreditableManager, url);
if (policy.isSSLProtected()) {
log.debug(" live is SSL protected");
// add prefix
newAttrs.setValue(
i,
sslPrefix + documentId + languageExtension + ".html");
}
else {
// check for live mount point
newAttrs.setValue(
i,
getNewHrefValue(languageExtension, documentId));
}
}
catch (AccessControlException e) {
throw new SAXException(e);
}
}
} else {
/* authoring area
*/
try {
String url = urlPrefix + documentId;
String finalurl;
Policy policy = policyManager.getPolicy(accreditableManager, url);
if (policy.isSSLProtected()) {
// add prefix
log.debug(" authoring is SSL protected");
log.debug(" ssl prefix: " + sslPrefix);
finalurl = sslPrefix + documentId + languageExtension + ".html";
log.debug(" finalurl: " + finalurl);