factory.destroy();
// because we destroy the actionfactory with the wicket app it is not
// recommended to share actionfactories.
ActionFactory factory2 = getActionFactory();
if (factory2 != null)
factory2.destroy();
}
/**
* Override the newRequestCycle to return an accessdenied page instead of the wicket
* default page that is returned for a InvalidUrlException. This override will return