Buggy code:
public abstract class Application { public static final String CONFIGURATION = "configuration" ; public static final String DEPLOYMENT = "deployment" ; public static final String DEVELOPMENT = "development" ; public static final String CONTEXTPATH = "contextpath" ; private static final ThreadLocal current = new ThreadLocal ( ) ; private static Log log = LogFactory . getLog ( Application . class ) ; private IComponentInstantiationListener [ ] componentInstantiationListeners = new IComponentInstantiationListener [ 0 ] ; private final MarkupCache markupCache ; private MetaDataEntry [ ] metaData ; private final String name ; private Settings settings ; private boolean settingsAccessible ; private final SharedResources sharedResources ; public static Application get ( ) { } public static void set ( final Application application ) { } public static void unset ( ) { } public Application ( ) { } public final void addComponentInstantiationListener ( final IComponentInstantiationListener listener ) { } public final void configure ( final String configurationType ) { } public final void configure ( final String configurationType , final IResourceFinder resourceFinder ) { } public final void configure ( final String configurationType , final String resourceFolder ) { } public final IApplicationSettings getApplicationSettings ( ) { } public final IDebugSettings getDebugSettings ( ) { } public final IExceptionSettings getExceptionSettings ( ) { } public abstract Class getHomePage ( ) { } public final MarkupCache getMarkupCache ( ) { } public final IMarkupSettings getMarkupSettings ( ) { } public final Serializable getMetaData ( final MetaDataKey key ) { } public final String getName ( ) { } public final IPageSettings getPageSettings ( ) { } public final IRequestCycleSettings getRequestCycleSettings ( ) { } public final IAjaxSettings getAjaxSettings ( ) { } public final IResourceSettings getResourceSettings ( ) { } public final ISecuritySettings getSecuritySettings ( ) { } public final ISessionSettings getSessionSettings ( ) { } public Settings getSettings ( ) { if ( ! ( settingsAccessible ) ) { <START_BUG> throw new WicketRuntimeException ( "Use<seq2seq4repair_space>Application.init()<seq2seq4repair_space>method<seq2seq4repair_space>for<seq2seq4repair_space>configuring<seq2seq4repair_space>youre<seq2seq4repair_space>application<seq2seq4repair_space>object" ) ; <END_BUG> } if ( ( settings ) == null ) { settings = new Settings ( this ) ; } return settings ; } public final SharedResources getSharedResources ( ) { } public final void removeComponentInstantiationListener ( final IComponentInstantiationListener listener ) { } public final void setMetaData ( final MetaDataKey key , final Serializable object ) { } protected abstract ISessionFactory getSessionFactory ( ) { } protected void init ( ) { } protected void internalInit ( ) { } final void notifyComponentInstantiationListeners ( final Component component ) { } private final void initialize ( final String className ) { } public final void initializeComponents ( ) { } private final void initializeComponents ( final Properties properties ) { } public void logEventTarget ( IRequestTarget target ) { } public void logResponseTarget ( IRequestTarget requestTarget ) { } }

Fix:
throw new WicketRuntimeException ( "Use<seq2seq4repair_space>Application.init()<seq2seq4repair_space>method<seq2seq4repair_space>for<seq2seq4repair_space>configuring<seq2seq4repair_space>your<seq2seq4repair_space>application<seq2seq4repair_space>object" ) ;