Buggy code:
public final class AutoLinkResolver implements IComponentResolver { public abstract static class AbstractAutolinkResolverDelegate implements AutoLinkResolver . IAutolinkResolverDelegate { protected final Component newPackageResourceReferenceAutoComponent ( 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 static boolean autoEnable = true ; public AutolinkBookmarkablePageLink ( final String id , final Class pageClass , final PageParameters parameters , final String anchor ) { } public boolean isTransparentResolver ( ) { } 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 supportedPageExtensions = new HashSet ( 4 ) ; public AnchorResolverDelegate ( ) { } 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 ( final String id , final String href ) { } public boolean isTransparentResolver ( ) { } } private static interface ITagReferenceResolver { String getReference ( final ComponentTag tag ) { } } private static final class ResourceReferenceAutolink extends WebMarkupContainer { private static final long serialVersionUID = 1L ; private final String attribute ; private final ResourceReference resourceReference ; public ResourceReferenceAutolink ( final String id , final Class clazz , final String href , final String attribute ) { } public boolean isTransparentResolver ( ) { } 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 Logger log = LoggerFactory . getLogger ( AutoLinkResolver . class ) ; private static final long serialVersionUID = 1L ; private final Map tagNameToAutolinkResolverDelegates = new HashMap ( ) ; private final Map tagNameToTagReferenceResolvers = new HashMap ( ) ; 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> container . autoAdd ( link ) ; <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:
container . autoAdd ( link , markupStream ) ;