Buggy code:
public class WebPage extends Page implements INewBrowserWindowListener { private static final Logger log = LoggerFactory . getLogger ( WebPage . class ) ; private static final long serialVersionUID = 1L ; private static final class PageMapChecker extends AbstractBehavior implements IHeaderContributor { private static final long serialVersionUID = 1L ; private final WebPage webPage ; PageMapChecker ( WebPage webPage ) { } public final void renderHead ( final IHeaderResponse headResponse ) { } } private static ResourceReference cookiesResource = new PackageResourceReference ( WebPage . class , "cookies.js" ) ; protected WebPage ( ) { } protected WebPage ( final IModel < ? > model ) { } protected WebPage ( final PageParameters parameters ) { } @ Override public MarkupType getMarkupType ( ) { } public void onNewBrowserWindow ( ) { } private void commonInit ( ) { } @ Override protected void configureResponse ( ) { } protected void setHeaders ( WebResponse response ) { } @ Override protected void onAfterRender ( ) { } private void validateHeaders ( ) { HtmlHeaderContainer header = visitChildren ( new org . apache . wicket . util . visit . IVisitor < Component , HtmlHeaderContainer > ( ) { public void component ( final Component component , final IVisit < HtmlHeaderContainer > visit ) { if ( component instanceof HtmlHeaderContainer ) { visit . stop ( ( ( HtmlHeaderContainer ) ( component ) ) ) ; } else { visit . dontGoDeeper ( ) ; } } } ) ; if ( header == null ) { header = new HtmlHeaderContainer ( HtmlHeaderSectionHandler . HEADER_ID ) ; add ( header ) ; Response orgResponse = getRequestCycle ( ) . getResponse ( ) ; try { final StringResponse response = new StringResponse ( ) ; getRequestCycle ( ) . setResponse ( response ) ; renderHead ( header ) ; final HtmlHeaderContainer finalHeader = header ; visitChildren ( new org . apache . wicket . util . visit . IVisitor < Component , Void > ( ) { public void component ( final Component component , final IVisit < Void > visit ) { component . renderHead ( finalHeader ) ; } } ) ; response . close ( ) ; if ( ( response . getBuffer ( ) . length ( ) ) > 0 ) { WebPage . log . error ( "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" ) ; <START_BUG> WebPage . log . error ( ( ( "You<seq2seq4repair_space>probably<seq2seq4repair_space>forgot<seq2seq4repair_space>to<seq2seq4repair_space>add<seq2seq4repair_space>a<seq2seq4repair_space><body><seq2seq4repair_space>or<seq2seq4repair_space><header><seq2seq4repair_space>tag<seq2seq4repair_space>to<seq2seq4repair_space>your<seq2seq4repair_space>markup<seq2seq4repair_space>since<seq2seq4repair_space>no<seq2seq4repair_space>Header<seq2seq4repair_space>Container<seq2seq4repair_space>was<seq2seq4repair_space>\n" + "found<seq2seq4repair_space>but<seq2seq4repair_space>components<seq2seq4repair_space>were<seq2seq4repair_space>found<seq2seq4repair_space>which<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>write<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space><head><seq2seq4repair_space>section.\n" ) + ( response . getBuffer ( ) ) ) ) ; <END_BUG> WebPage . log . error ( "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" ) ; } } catch ( Exception e ) { WebPage . log . error ( "header//body<seq2seq4repair_space>check<seq2seq4repair_space>throws<seq2seq4repair_space>exception" , e ) ; } finally { this . remove ( header ) ; getRequestCycle ( ) . setResponse ( orgResponse ) ; } } } @ SuppressWarnings ( "unchecked" ) protected final BookmarkablePageLink < ? > homePageLink ( final String id ) { } }

Fix:
WebPage . log . error ( ( ( "You<seq2seq4repair_space>probably<seq2seq4repair_space>forgot<seq2seq4repair_space>to<seq2seq4repair_space>add<seq2seq4repair_space>a<seq2seq4repair_space><body><seq2seq4repair_space>or<seq2seq4repair_space><head><seq2seq4repair_space>tag<seq2seq4repair_space>to<seq2seq4repair_space>your<seq2seq4repair_space>markup<seq2seq4repair_space>since<seq2seq4repair_space>no<seq2seq4repair_space>Header<seq2seq4repair_space>Container<seq2seq4repair_space>was<seq2seq4repair_space>\n" + "found<seq2seq4repair_space>but<seq2seq4repair_space>components<seq2seq4repair_space>were<seq2seq4repair_space>found<seq2seq4repair_space>which<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>write<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space><head><seq2seq4repair_space>section.\n" ) + ( response . getBuffer ( ) ) ) ) ;