title: Error in customizing jsf resource bundle handler
body: <p>In a project i will customize the jsf resource bundle handler. according to this post:<br>
  <a href="https://stackoverflow.com/questions/3645491/i18n-with-utf-8-encoded-properties-files-in-jsf-2-0-application">i18n with UTF-8 encoded properties files in JSF 2.0 application</a></p>
  
  <p>i add following lines to my faces-config:  </p>
  
  <pre><code>&lt;application&gt;
      &lt;locale-config&gt;
          &lt;default-locale&gt;fa&lt;/default-locale&gt;
          &lt;supported-locale&gt;en&lt;/supported-locale&gt;
          &lt;supported-locale&gt;fa&lt;/supported-locale&gt;
      &lt;/locale-config&gt;
      &lt;message-bundle&gt;ApplicationResources&lt;/message-bundle&gt;
      &lt;resource-bundle&gt;
          &lt;base-name&gt;org.apache.myfaces.bundle.CustomJsfBundleHandler&lt;/base-name&gt;
          &lt;var&gt;messages&lt;/var&gt;
      &lt;/resource-bundle&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>And create a handler:  </p>
  
  <pre><code>package org.apache.myfaces.bundle;
  
  import java.io.IOException;
  import java.io.InputStream;
  import java.io.Reader;
  import java.util.PropertyResourceBundle;
  
  public class CustomJsfBundleHandler extends PropertyResourceBundle {
  
      public CustomJsfBundleHandler(InputStream stream) throws IOException {
          super(stream);
      }
  
      public CustomJsfBundleHandler(Reader reader) throws IOException {
          super(reader);
      }
  
      @Override
      public Object handleGetObject(String key) {
         // do some customization
         return super.handleGetObject(key);
      }
  }  
  </code></pre>
  
  <p>But when is goto my page i get following Exception : </p>
  
  <blockquote>
    <p>java.util.MissingResourceException: Can't find bundle for base name org.apache.myfaces.bundle.CustomJsfBundleHandler, locale en
        at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:1082)
        at org.apache.myfaces.application.ApplicationImpl.getResourceBundle(ApplicationImpl.java:459)
        at org.apache.myfaces.application.ApplicationImpl.getResourceBundle(ApplicationImpl.java:435)
        at org.apache.myfaces.el.unified.resolver.ResourceBundleResolver.getResourceBundle(ResourceBundleResolver.java:222)
        at org.apache.myfaces.el.unified.resolver.ResourceBundleResolver.getValue(ResourceBundleResolver.java:136)</p>
  </blockquote>
  
  <p>Do you have any idea?</p>