private void buildupPropertiesBundles(final File file) throws IOException {
		File[] files = file.listFiles();

		for (File f : files) {
			if (f.getName().endsWith("properties")) {
				String bundleName = f.getName().substring(0,
						f.getName().indexOf("properties") - 1);

				LOG.info("Loading: " + bundleName);
				ResourceBundle bundle = new PropertyResourceBundle(
						new FileInputStream(f));
				bundles.put(bundleName, bundle);
			}
		}
	}
private void buildupPropertiesBundles ( final File file ) throws IOException { File [ ] files = file . listFiles ( ) ; for ( File f : files ) { if ( f . getName ( ) . endsWith ( "properties" ) ) { String bundleName = f . getName ( ) . substring ( 0 , f . getName ( ) . indexOf ( "properties" ) - 1 ) ; LOG . info ( "Loading: " + bundleName ) ; ResourceBundle bundle = new PropertyResourceBundle ( new FileInputStream ( f ) ) ; bundles . put ( bundleName , bundle ) ; } } }
Loads all properties files into a bundle cache.

@param file
the folder where the properties files can be found
@throws IOException
if something goes wrong while reading the file