@@ -0,0 +1,739 @@
+package org.mg.javalib.util;%0A%0Aimport java.text.MessageFormat;%0Aimport java.util.ResourceBundle;%0A%0Apublic class ResourceBundleOwner%0A%7B%0A%09private String resourceBundleName;%0A%0A%09private ResourceBundle bundle;%0A%0A%09public ResourceBundleOwner(String resourceBundleName)%0A%09%7B%0A%09%09this.resourceBundleName = resourceBundleName;%0A%09%7D%0A%0A%09private ResourceBundle bundle()%0A%09%7B%0A%09%09if (bundle == null)%0A%09%09%09bundle = ResourceBundle.getBundle(resourceBundleName);%0A%09%09//%09%09ResourceBundle.clearCache();%0A%09%09//%09%09bundle = ResourceBundle.getBundle(resourceBundleName);%0A%09%09return bundle;%0A%09%7D%0A%0A%09public String text(String key)%0A%09%7B%0A%09%09return bundle().getString(key);%0A%09%7D%0A%0A%09public String text(String key, Object... params)%0A%09%7B%0A%09%09return MessageFormat.format(bundle().getString(key), params);%0A%09%7D%0A%7D%0A

add bundle owner