}
if (!mountPrefix.startsWith("/")) {
mountPrefix = "/" + mountPrefix;
}
for (Map.Entry<String, SortedSet<WeightedResourceSpec>> e : new ContributionScanner(packageName).getContributions().entrySet()) {
String path = e.getKey();
if (Strings.isEmpty(path)) {
throw new WicketRuntimeException("path must not be empty");
}
SortedSet<WeightedResourceSpec> specs = e.getValue();