Buggy code:
public final String getModelObjectAsString ( ) { } public final Page getPage ( ) { } public final IPageFactory getPageFactory ( ) { } public final String getPageRelativePath ( ) { } public final MarkupContainer getParent ( ) { } public final String getPath ( ) { } public final Request getRequest ( ) { } public final RequestCycle getRequestCycle ( ) { } public final Resource getResource ( ) { } public final Response getResponse ( ) { } public final Session getSession ( ) { } public final String getString ( final String key ) { } public final String getString ( final String key , final IModel model ) { } public final String getString ( final String key , final IModel model , final String defaultValue ) { } public final String getStyle ( ) { } public final boolean hasErrorMessage ( ) { } public final boolean hasFeedbackMessage ( ) { } public final void info ( final String message ) { } public final boolean isAncestorOf ( final Component component ) { } public boolean isVersioned ( ) { } public boolean isVisible ( ) { } public final void modelChanged ( ) { } public final void modelChanging ( ) { } public final Page newPage ( final Class c ) { } public final Page newPage ( final Class c , final PageParameters parameters ) { } public final void remove ( ) { } public final void render ( ) { } public final void rendered ( ) { } public final boolean sameRootModel ( final Component component ) { } public final boolean sameRootModel ( final IModel model ) { } public void setModel ( final IModel model ) { } public final void setModelObject ( final Object object ) { } public final void setRedirect ( final boolean redirect ) { } public final void setRenderBodyOnly ( final boolean renderTag ) { } protected final boolean getRenderBodyOnly ( ) { } public final void setResponsePage ( final Page page ) { } public final Component setShouldEscapeModelStrings ( final boolean escapeMarkup ) { } public void setVersioned ( boolean versioned ) { } public final Component setVisible ( final boolean visible ) { } public String toString ( ) { } public String toString ( final boolean detailed ) { } public final String urlFor ( final Class listenerInterface ) { } public final void warn ( final String message ) { } public final void add ( EventRequestHandler eventRequestHandler ) { } protected final EventRequestHandler [ ] getEventRequestHandlers ( ) { } public void onEventRequest ( ) { } protected final void addStateChange ( Change change ) { } protected final void checkComponentTag ( final ComponentTag tag , final String name ) { } protected final void checkComponentTagAttribute ( final ComponentTag tag , final String key , final String value ) { } protected void detachModel ( ) { } protected final String exceptionMessage ( final String message ) { } protected MarkupStream findMarkupStream ( ) { } protected final Page findPage ( ) { } protected final boolean getFlag ( final short flag ) { } protected IModel initModel ( ) { } protected void internalBeginRequest ( ) { } protected void internalEndRequest ( ) { } protected void internalOnBeginRequest ( ) { } protected void internalOnEndRequest ( ) { } protected void internalOnModelChanged ( ) { } protected void internalOnModelChanging ( ) { } protected void onBeginRequest ( ) { } protected void onComponentTag ( final ComponentTag tag ) { } protected void onComponentTagBody ( final MarkupStream markupStream , final ComponentTag openTag ) { } protected void onEndRequest ( ) { } protected void onModelChanged ( ) { } protected void onModelChanging ( ) { } protected abstract void onRender ( ) { } protected void onSessionAttach ( ) { } protected void redirectTo ( final Page page ) { } protected final void renderComponent ( final MarkupStream markupStream ) { } protected final void renderComponentTag ( ComponentTag tag ) { final ApplicationSettings settings = getApplication ( ) . getSettings ( ) ; if ( ( ! ( tag instanceof WicketTag ) ) || ( ! ( settings . getStripWicketTags ( ) ) ) ) { if ( ( ( attributeModifiers ) != null ) && ( ( tag . getType ( ) ) != ( XmlTag . CLOSE ) ) ) { tag = tag . mutable ( ) ; for ( AttributeModifier current = attributeModifiers ; current != null ; current = current . next ) { current . replaceAttibuteValue ( this , tag ) ; } } if ( ( eventRequestHandlers ) != null ) { for ( Iterator i = eventRequestHandlers . values ( ) . iterator ( ) ; i . hasNext ( ) ; ) { EventRequestHandler handler = ( ( EventRequestHandler ) ( i . next ( ) ) ) ; handler . onRenderComponentTag ( this , tag ) ; } } <START_BUG> getResponse ( ) . write ( tag . toString ( settings . getStripWicketTags ( ) , settings . getWicketNamespace ( ) ) ) ; <END_BUG> } } protected final void replaceComponentTagBody ( final MarkupStream markupStream , final ComponentTag tag , final String body ) { } protected final void setFlag ( final short flag , final boolean set ) { } protected final Object visitParents ( final Class c , final Component . IVisitor visitor ) { } Component get ( final String path ) { } final boolean isAuto ( ) { } final void renderClosingComponentTag ( final MarkupStream markupStream , final ComponentTag openTag , final boolean renderTagOnly ) { } final void setAuto ( final boolean auto ) { } final void setId ( final String id ) { } final void setParent ( final MarkupContainer parent ) { } final void detachModels ( ) { } private final Object getRootModel ( final IModel model ) { } }

Fix:
getResponse ( ) . write ( tag . toString ( settings . getStripWicketTags ( ) , this . findMarkupStream ( ) . getWicketNamespace ( ) ) ) ;