Description
During migration from wicket 1.5 to 6 I noticed that ResourceStreamLocator and ResourceNameIterator changed in some ways.
IMO suboptimal: the method ResourceStreamLocator#newResourceNameIterator contains code. Typically all new... methods only create a new instance, so user can override and add his own implementation.
Since the parameter 'extension' (from ResourceNameIterator) changed from String to Iterator<String>, I suggest to provide a 'newResourceNameIterator' method with a Iterator as parameter (only creating a new ResourceNameIterator).