public static void load(final String bundleName, final ClassLoader loader, final Field[] fields) {
public static void load(final String bundleName, Class clazz) { long start = System.currentTimeMillis(); final Field[] fieldArray = clazz.getDeclaredFields(); ClassLoader loader = clazz.getClassLoader();   final int len = fieldArray.length; Map fields = new HashMap(len * 2); for (int i = 0; i < len; i++) fields.put(fieldArray[i].getName(), fieldArray[i]);
	public static void load(final String bundleName, final ClassLoader loader, final Field[] fields) {		final String[] variants = buildVariants(bundleName);		// search the dirs in reverse order so the cascading defaults is set correctly		for (int i = variants.length; --i >= 0;) {			final InputStream input = loader.getResourceAsStream(variants[i]);			if (input == null)				continue;			try {				final MessagesProperties properties = new MessagesProperties(fields, bundleName);				properties.load(input);			} catch (IOException e) {				// TODO log			} finally {				if (input != null)					try {						input.close();					} catch (IOException e) {						// ignore					}			}		}	}