package org.beanmaker.util;

import java.util.Locale;
import java.util.ResourceBundle;

public class BaseView {
    final private String resourceBundleName;
    protected ResourceBundle resourceBundle;
    protected Locale locale;

    public BaseView(final String resourceBundleName) {
        this.resourceBundleName = resourceBundleName;
        setLocale(Locale.getDefault());
    }

    public void setLocale(final Locale locale) {
        this.locale = locale;
        resourceBundle = ResourceBundle.getBundle(resourceBundleName, locale);
    }
}

@@ -342,18 +342,19 @@
         
-se
+ini
 tLocale(
@@ -391,21 +391,23 @@
    p
-ublic
+rivate
  void 
-se
+ini
 tLoc
@@ -547,11 +547,95 @@
 );%0A    %7D
+%0A%0A    public void setLocale(final Locale locale) %7B%0A        initLocale(locale);%0A    %7D
 %0A%7D%0A

Move resource bundle management to private non overridable function