Buggy code:
public final class AutoLinkResolver implements IComponentResolver { public abstract static class AbstractAutolinkResolverDelegate implements AutoLinkResolver . IAutolinkResolverDelegate { protected final Component newResourceReferenceAutoComponent ( final MarkupContainer container , final String autoId , final AutoLinkResolver . PathInfo pathInfo , final String attribute ) { } } public static final class AutolinkBookmarkablePageLink extends BookmarkablePageLink { private static final long serialVersionUID = 1L ; private final String anchor ; public AutolinkBookmarkablePageLink ( MarkupContainer parent , final String id , final Class < ? extends Page > pageClass , final PageParameters parameters , final String anchor ) { } @ Override public boolean isTransparentResolver ( ) { } @ Override protected CharSequence getURL ( ) { } } public static interface IAutolinkResolverDelegate { Component newAutoComponent ( final MarkupContainer container , final String autoId , final AutoLinkResolver . PathInfo pathInfo ) { } } public static final class PathInfo { private final boolean absolute ; private final String anchor ; private final String extension ; private final PageParameters pageParameters ; private final String path ; private final String reference ; public PathInfo ( final String reference ) { } public final String getAnchor ( ) { } public final String getExtension ( ) { } public final PageParameters getPageParameters ( ) { } public final String getPath ( ) { } public final String getReference ( ) { } public final boolean isAbsolute ( ) { } } private static final class AnchorResolverDelegate extends AutoLinkResolver . AbstractAutolinkResolverDelegate { private static final String attribute = "href" ; private final Set < String > supportedPageExtensions = new HashSet < String > ( 4 ) ; public AnchorResolverDelegate ( ) { } @ SuppressWarnings ( "unchecked" ) public Component newAutoComponent ( final MarkupContainer container , final String autoId , AutoLinkResolver . PathInfo pathInfo ) { } } private static final class AutolinkExternalLink extends ExternalLink { private static final long serialVersionUID = 1L ; public AutolinkExternalLink ( MarkupContainer parent , final String id , final String href ) { } @ Override public boolean isTransparentResolver ( ) { } } private static interface ITagReferenceResolver { String getReference ( final ComponentTag tag ) { } } private static final class ResourceReferenceAutolink < T > extends WebMarkupContainer < T > { private static final long serialVersionUID = 1L ; private final String attribute ; private final ResourceReference resourceReference ; public ResourceReferenceAutolink ( MarkupContainer parent , final String id , final Class clazz , final String ref , final String attribute ) { } @ Override public boolean isTransparentResolver ( ) { } @ Override protected final void onComponentTag ( final ComponentTag tag ) { } } private static final class ResourceReferenceResolverDelegate extends AutoLinkResolver . AbstractAutolinkResolverDelegate { private final String attribute ; public ResourceReferenceResolverDelegate ( final String attribute ) { } public Component newAutoComponent ( final MarkupContainer container , final String autoId , final AutoLinkResolver . PathInfo pathInfo ) { } } private static final class TagReferenceResolver implements AutoLinkResolver . ITagReferenceResolver { private final String attribute ; public TagReferenceResolver ( final String attribute ) { } public String getReference ( final ComponentTag tag ) { } } private static final AutoLinkResolver . TagReferenceResolver DEFAULT_ATTRIBUTE_RESOLVER = new AutoLinkResolver . TagReferenceResolver ( "href" ) ; private static final Log log = LogFactory . getLog ( AutoLinkResolver . class ) ; private static final long serialVersionUID = 1L ; private final Map < String , AutoLinkResolver . IAutolinkResolverDelegate > tagNameToAutolinkResolverDelegates = new HashMap < String , AutoLinkResolver . IAutolinkResolverDelegate > ( ) ; private final Map < String , AutoLinkResolver . TagReferenceResolver > tagNameToTagReferenceResolvers = new HashMap < String , AutoLinkResolver . TagReferenceResolver > ( ) ; public AutoLinkResolver ( ) { } public final void addTagReferenceResolver ( final String tagName , final String attributeName , final AutoLinkResolver . IAutolinkResolverDelegate resolver ) { } public final AutoLinkResolver . IAutolinkResolverDelegate getAutolinkResolverDelegate ( final String tagName ) { } public final boolean resolve ( final MarkupContainer container , final MarkupStream markupStream , final ComponentTag tag ) { if ( tag . isAutolinkEnabled ( ) ) { final Component link = resolveAutomaticLink ( container , AUTOLINK_ID , tag ) ; <START_BUG> link . autoAdded ( ) ; <END_BUG> if ( AutoLinkResolver . log . isDebugEnabled ( ) ) { AutoLinkResolver . log . debug ( ( "Added<seq2seq4repair_space>autolink<seq2seq4repair_space>" + link ) ) ; } return true ; } return false ; } private final Component resolveAutomaticLink ( final MarkupContainer container , final String id , final ComponentTag tag ) { } }

Fix:
link . render ( markupStream ) ;