String id = request.getParameter("page");
if (id != null) {
try {
StaticPage staticPage = service.getStaticPageById(blog, id);
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);