@Override
@SuppressWarnings("unchecked")
protected void doService(final ToolPageContext page) throws IOException, ServletException {
String redirect = page.param(String.class, "redirect");
CmsTool.CommonContentSettings settings = null;
Site site = page.getSite();
if (site != null) {
settings = site.getCommonContentSettings();
}
if (settings == null) {
settings = page.getCmsTool().getCommonContentSettings();
}