The lazy registration of shared resources which are not of scope org.apache.wicket.Application fails.
It fails because registers SharedResourceRequestTarget the resource with
but should use
sharedResources.add(scope, path,null,null, packageResource);
The problem is that add(final String name, final Resource resource) expects a name for the resource and not the complete resource key.
As consequence the resource is registered again and again with scope org.apache.wicket.Application.