Buggy code:
public class AutolinkComponentResolver implements IComponentResolver { private static Log log = LogFactory . getLog ( AutolinkComponentResolver . class ) ; private static final Group automaticCommand = new Group ( MetaPattern . WORD ) ; private static final Group automaticParameters = new Group ( MetaPattern . ANYTHING_NON_EMPTY ) ; private static final Group automaticIndexPrefix = new Group ( MetaPattern . DIGITS ) ; private static final MetaPattern automaticComponentPattern = new MetaPattern ( new MetaPattern [ ] { MetaPattern . LEFT_SQUARE , AutolinkComponentResolver . automaticCommand , new wicket . util . parse . metapattern . OptionalMetaPattern ( new MetaPattern [ ] { MetaPattern . COLON , AutolinkComponentResolver . automaticParameters } ) , MetaPattern . RIGHT_SQUARE } ) ; private static int autoIndex ; private Class automaticLinkPageClass ; private PageParameters automaticLinkPageParameters ; public boolean resolve ( final Container container , final MarkupStream markupStream , final ComponentTag tag ) { } private void resolveAutomaticLink ( final Page page , final MarkupStream markupStream , final String componentName , final ComponentTag tag ) { final Matcher matcher = AutolinkComponentResolver . automaticComponentPattern . matcher ( componentName ) ; if ( matcher . matches ( ) ) { final String command = AutolinkComponentResolver . automaticCommand . get ( matcher ) ; final String parameters = AutolinkComponentResolver . automaticParameters . get ( matcher ) ; if ( command . equals ( "autolink" ) ) { final String href = tag . getAttributes ( ) . getString ( "href" ) ; if ( href == null ) { markupStream . throwMarkupException ( "Automatic<seq2seq4repair_space>link<seq2seq4repair_space>requires<seq2seq4repair_space>href<seq2seq4repair_space>attribute" ) ; } final String path = Strings . stripEnding ( href , ".html" ) ; try { <START_BUG> automaticLinkPageClass = RequestCycle . get ( ) . getApplication ( ) . getSettings ( ) . getPageFactory ( ) . getClassInstance ( ( ( ( page . getClass ( ) . getPackage ( ) . getName ( ) ) + "." ) + path ) ) ; <END_BUG> if ( parameters != null ) { automaticLinkPageParameters = new PageParameters ( parameters ) ; } else { automaticLinkPageParameters = PageParameters . NULL ; } } catch ( RenderException e ) { markupStream . throwMarkupException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>page<seq2seq4repair_space>at<seq2seq4repair_space>" + path ) ) ; } } else { if ( ( ! ( command . equals ( "children" ) ) ) && ( ! ( command . equals ( "border" ) ) ) ) { markupStream . throwMarkupException ( ( ( ( "Special<seq2seq4repair_space>component<seq2seq4repair_space>names<seq2seq4repair_space>include<seq2seq4repair_space>[border],<seq2seq4repair_space>[body]<seq2seq4repair_space>and<seq2seq4repair_space>[autolink],<seq2seq4repair_space>" + "but<seq2seq4repair_space>not<seq2seq4repair_space>'" ) + command ) + "'" ) ) ; } } } else { markupStream . throwMarkupException ( "Invalid<seq2seq4repair_space>syntax<seq2seq4repair_space>for<seq2seq4repair_space>automaticLink<seq2seq4repair_space>component" ) ; } } }

Fix:
automaticLinkPageClass = RequestCycle . get ( ) . getApplication ( ) . getSettings ( ) . getDefaultPageFactory ( ) . classForName ( ( ( ( page . getClass ( ) . getPackage ( ) . getName ( ) ) + "." ) + path ) ) ;