Buggy code:
public abstract class Application { private static Log log = LogFactory . getLog ( Application . class ) ; private List componentResolvers = new ArrayList ( ) ; private IConverterFactory converterFactory = new ConverterFactory ( ) ; private final Localizer localizer ; private final MarkupCache markupCache ; private final String name ; private final Map nameToResourceFactory = new HashMap ( ) ; private final ApplicationPages pages = new ApplicationPages ( ) ; private ResourceStreamLocator resourceStreamLocator ; private ModificationWatcher resourceWatcher ; private final ApplicationSettings settings = new ApplicationSettings ( this ) ; private final SharedResources sharedResources = new SharedResources ( ) ; private ICrypt crypt ; public Application ( ) { } public final void addResourceFactory ( final String name , final IResourceFactory resourceFactory ) { } public final List getComponentResolvers ( ) { } public IConverterFactory getConverterFactory ( ) { } public Localizer getLocalizer ( ) { } public final MarkupCache getMarkupCache ( ) { } public final String getName ( ) { } public final ApplicationPages getPages ( ) { } public final Iterator getPageSets ( final Page page ) { } public final IResourceFactory getResourceFactory ( final String name ) { } public ResourceStreamLocator getResourceStreamLocator ( ) { } public final ModificationWatcher getResourceWatcher ( ) { } public ApplicationSettings getSettings ( ) { } public final SharedResources getSharedResources ( ) { } public synchronized ICrypt newCrypt ( ) { if ( ( crypt ) == null ) { Class cryptClass = getSettings ( ) . getCryptClass ( ) ; try { crypt = ( ( ICrypt ) ( cryptClass . newInstance ( ) ) ) ; Application . log . info ( ( "using<seq2seq4repair_space>encryption//decryption<seq2seq4repair_space>object<seq2seq4repair_space>" + ( crypt ) ) ) ; crypt . setKey ( getSettings ( ) . getEncryptionKey ( ) ) ; return crypt ; <START_BUG> } catch ( Exception e ) { <END_BUG> Application . log . warn ( "**************************<seq2seq4repair_space>WARNING<seq2seq4repair_space>**************************" ) ; Application . log . warn ( "As<seq2seq4repair_space>the<seq2seq4repair_space>instantion<seq2seq4repair_space>of<seq2seq4repair_space>encryption//decryption<seq2seq4repair_space>class:" ) ; Application . log . warn ( ( "\t" + cryptClass ) ) ; Application . log . warn ( "failed,<seq2seq4repair_space>Wicket<seq2seq4repair_space>will<seq2seq4repair_space>fallback<seq2seq4repair_space>on<seq2seq4repair_space>a<seq2seq4repair_space>dummy<seq2seq4repair_space>implementation" ) ; Application . log . warn ( ( ( "\t(" + ( NoCrypt . class . getName ( ) ) ) + ")" ) ) ; Application . log . warn ( "This<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>recommended<seq2seq4repair_space>for<seq2seq4repair_space>production<seq2seq4repair_space>systems." ) ; Application . log . warn ( "Please<seq2seq4repair_space>override<seq2seq4repair_space>method<seq2seq4repair_space>wicket.Application.newCrypt()" ) ; Application . log . warn ( "to<seq2seq4repair_space>provide<seq2seq4repair_space>a<seq2seq4repair_space>custom<seq2seq4repair_space>encryption//decryption<seq2seq4repair_space>implementation" ) ; Application . log . warn ( "The<seq2seq4repair_space>cause<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>instantion<seq2seq4repair_space>failure:<seq2seq4repair_space>" ) ; Application . log . warn ( ( "\t" + ( e . getMessage ( ) ) ) ) ; if ( Application . log . isDebugEnabled ( ) ) { Application . log . debug ( "exception:<seq2seq4repair_space>" , e ) ; } else { Application . log . warn ( "set<seq2seq4repair_space>log<seq2seq4repair_space>level<seq2seq4repair_space>to<seq2seq4repair_space>DEBUG<seq2seq4repair_space>to<seq2seq4repair_space>display<seq2seq4repair_space>the<seq2seq4repair_space>stack<seq2seq4repair_space>trace." ) ; } Application . log . warn ( "*************************************************************" ) ; crypt = new NoCrypt ( ) ; } } return crypt ; } public final MarkupParser newMarkupParser ( ) { } protected abstract ISessionFactory getSessionFactory ( ) { } protected void init ( ) { } protected void internalInit ( ) { } final void resourcePathChanged ( ) { } }

Fix:
} catch ( Throwable e ) {