// Now get all files in the message bundle (all localized versions)
// TODO optimize this - scan the classpath once and then pull out just the resources we need
MessageBundleScanner scanner = new MessageBundleScanner(
new ConfigurationBuilder()
.filterInputsBy(new FilterBuilder().include(".*json"))
.setUrls(ClasspathHelper.forClassLoader())
.setScanners(new MessageBundleResourceScanner(bundlePath)));
Collection<String> resources = scanner.getStore().get(MessageBundleResourceScanner.class).values();
// If we didn't find at least the specified root bundle file, that's a problem.
if (!resources.contains(bundlePath)) {