Buggy code:
public class ApplicationSettings { public static final ApplicationSettings . RenderStrategy ONE_PASS_RENDER = new ApplicationSettings . RenderStrategy ( "ONE_PASS_RENDER" ) ; public static final ApplicationSettings . RenderStrategy REDIRECT_TO_BUFFER = new ApplicationSettings . RenderStrategy ( "REDIRECT_BUFFER" ) ; public static final ApplicationSettings . RenderStrategy REDIRECT_TO_RENDER = new ApplicationSettings . RenderStrategy ( "CLIENT_SIDE_REDIRECT" ) ; public static final ApplicationSettings . UnexpectedExceptionDisplay SHOW_EXCEPTION_PAGE = new ApplicationSettings . UnexpectedExceptionDisplay ( "SHOW_EXCEPTION_PAGE" ) ; public static final ApplicationSettings . UnexpectedExceptionDisplay SHOW_INTERNAL_ERROR_PAGE = new ApplicationSettings . UnexpectedExceptionDisplay ( "SHOW_INTERNAL_ERROR_PAGE" ) ; public static final ApplicationSettings . UnexpectedExceptionDisplay SHOW_NO_EXCEPTION_PAGE = new ApplicationSettings . UnexpectedExceptionDisplay ( "SHOW_NO_EXCEPTION_PAGE" ) ; private static final Log log = LogFactory . getLog ( ApplicationSettings . class ) ; private Application application ; private boolean automaticLinking = false ; private boolean bufferResponse = true ; private boolean componentUseCheck = true ; private boolean compressWhitespace = false ; private CookieValuePersisterSettings cookieValuePersisterSettings = new CookieValuePersisterSettings ( ) ; private Class cryptClass = SunJceCrypt . class ; private String defaultAfterDisabledLink = "<//i>" ; private String defaultBeforeDisabledLink = "<i>" ; private IClassResolver defaultClassResolver = new DefaultClassResolver ( ) ; private Locale defaultLocale = Locale . getDefault ( ) ; private IPageFactory defaultPageFactory = new DefaultPageFactory ( ) ; private String encryptionKey = "WiCkEt-FRAMEwork" ; private int maxPages = 10 ; private int maxPageVersions = 10 ; private boolean overriddenStringResourceLoaders = false ; private ApplicationSettings . RenderStrategy renderStrategy = ApplicationSettings . REDIRECT_TO_BUFFER ; private IResourceFinder resourcePath = null ; private Duration resourcePollFrequency = null ; private List stringResourceLoaders = new ArrayList ( 2 ) ; private boolean stripComments = false ; private boolean stripWicketTags = false ; private boolean throwExceptionOnMissingResource = true ; private ApplicationSettings . UnexpectedExceptionDisplay unexpectedExceptionDisplay = ApplicationSettings . SHOW_EXCEPTION_PAGE ; private boolean useDefaultOnMissingResource = true ; private boolean versionPagesByDefault = true ; private String wicketNamespace = ComponentTag . DEFAULT_WICKET_NAMESPACE ; public static final class RenderStrategy extends EnumeratedType { RenderStrategy ( final String name ) { } } public static final class UnexpectedExceptionDisplay extends EnumeratedType { UnexpectedExceptionDisplay ( final String name ) { } } public ApplicationSettings ( final Application application ) { } public final ApplicationSettings addStringResourceLoader ( final IStringResourceLoader loader ) { } public final void configure ( final String configurationType ) { <START_BUG> configure ( configurationType , "src//java" ) ; <END_BUG> } public final void configure ( final String configurationType , final String resourcePath ) { } public final void configure ( final String configurationType , final IResourceFinder resourcePath ) { } public IResourceFinder createResourceFinder ( ) { } public final boolean getAutomaticLinking ( ) { } public final boolean getBufferResponse ( ) { } public final boolean getComponentUseCheck ( ) { } public final boolean getCompressWhitespace ( ) { } public final CookieValuePersisterSettings getCookieValuePersisterSettings ( ) { } public final Class getCryptClass ( ) { } public final String getDefaultAfterDisabledLink ( ) { } public final String getDefaultBeforeDisabledLink ( ) { } public final IClassResolver getDefaultClassResolver ( ) { } public final Locale getDefaultLocale ( ) { } public final IPageFactory getDefaultPageFactory ( ) { } public final String getEncryptionKey ( ) { } public final int getMaxPages ( ) { } public final int getMaxPageVersions ( ) { } public final ApplicationSettings . RenderStrategy getRenderStrategy ( ) { } public final IResourceFinder getResourcePath ( ) { } public final Duration getResourcePollFrequency ( ) { } public final boolean getStripComments ( ) { } public final boolean getStripWicketTags ( ) { } public final boolean getThrowExceptionOnMissingResource ( ) { } public final ApplicationSettings . UnexpectedExceptionDisplay getUnexpectedExceptionDisplay ( ) { } public final boolean getUseDefaultOnMissingResource ( ) { } public final boolean getVersionPagesByDefault ( ) { } public final String getWicketNamespace ( ) { } public final void setAutomaticLinking ( boolean automaticLinking ) { } public final void setBufferResponse ( boolean bufferResponse ) { } public final ApplicationSettings setComponentUseCheck ( final boolean componentUseCheck ) { } public final ApplicationSettings setCompressWhitespace ( final boolean compressWhitespace ) { } public final void setCookieValuePersisterSettings ( CookieValuePersisterSettings cookieValuePersisterSettings ) { } public final ApplicationSettings setCryptClass ( Class crypt ) { } public final ApplicationSettings setDefaultAfterDisabledLink ( final String defaultAfterDisabledLink ) { } public final ApplicationSettings setDefaultBeforeDisabledLink ( String defaultBeforeDisabledLink ) { } public final ApplicationSettings setDefaultClassResolver ( final IClassResolver defaultClassResolver ) { } public final void setDefaultLocale ( Locale defaultLocale ) { } public final ApplicationSettings setDefaultPageFactory ( final IPageFactory defaultPageFactory ) { } public final ApplicationSettings setEncryptionKey ( String encryptionKey ) { } public final ApplicationSettings setMaxPages ( final int maxPages ) { } public final void setMaxPageVersions ( int maxPageVersions ) { } public final void setRenderStrategy ( ApplicationSettings . RenderStrategy renderStrategy ) { } public final ApplicationSettings setResourcePath ( final IResourceFinder resourcePath ) { } public final ApplicationSettings setResourcePath ( final String resourcePath ) { } public final ApplicationSettings setResourcePollFrequency ( final Duration resourcePollFrequency ) { } public final ApplicationSettings setStripComments ( boolean stripComments ) { } public final ApplicationSettings setStripWicketTags ( boolean stripWicketTags ) { } public final ApplicationSettings setThrowExceptionOnMissingResource ( final boolean throwExceptionOnMissingResource ) { } public final ApplicationSettings setUnexpectedExceptionDisplay ( final ApplicationSettings . UnexpectedExceptionDisplay unexpectedExceptionDisplay ) { } public final ApplicationSettings setUseDefaultOnMissingResource ( final boolean useDefaultOnMissingResource ) { } public final void setVersionPagesByDefault ( boolean pagesVersionedByDefault ) { } public final ApplicationSettings setWicketNamespace ( final String namespace ) { } final List getStringResourceLoaders ( ) { } private void addToPath ( final String resourcePath , IResourceFinder path ) { } }

Fix:
configure ( configurationType , ( ( IResourceFinder ) ( null ) ) ) ;