getApplicationSettings().setAccessDeniedPage(AccessDeniedPage.class);
// Add resolver for automatically resolving HTML links
getPageSettings().addComponentResolver(new AutoLinkResolver());
getPageSettings().addComponentResolver(new AutoLabelResolver());
getPageSettings().addComponentResolver(new AutoLabelTextResolver());
// Set resource finder to web app path
getResourceSettings().setResourceFinder(getResourceFinder());
getResourceSettings().setFileCleaner(new FileCleaner());