if (staticPage != null) {
service.unlock(staticPage);
blog.info("Static page <a href=\"" + staticPage.getLocalPermalink() + "\">" + staticPage.getTitle() + "</a> unlocked.");
}
} catch (StaticPageServiceException e) {
blog.warn(e.getClass().getName() + " Error while unlocking static page - " + StringUtils.transformHTML(e.getMessage()));
log.warn("Error while unlocking static page", e);
}
}
return new RedirectView(blog.getUrl() + "viewStaticPages.secureaction");