CollectionUtils.addAll(urls, classLoader.getResources(META_INF_TOBAGO_CONFIG_XML));
CollectionUtils.addAll(urls, classLoader.getResources(META_INF_TOBAGO_THEME_XML));
for (URL themeUrl : urls) {
if (themeUrl.toString().endsWith(META_INF_TOBAGO_CONFIG_XML)) {
TobagoConfigFragment tobagoConfig = new TobagoConfigParser().parse(themeUrl);
for (ThemeImpl theme : tobagoConfig.getThemeDefinitions()) {
addThemeResources(resources, themeUrl, theme);
}
} else {
// the old way