code: private Resource findComponentResourceBundleLocaleMatch(FacesContext context, 
              String resourceName, String libraryName) {
          Resource result = null;
          ResourceBundle resourceBundle = null;
          int i;
          if (-1 != (i = resourceName.lastIndexOf("."))) {
              resourceName = resourceName.substring(0, i) +
                      ".properties";
              if (null != context) {
                  result = context.getApplication().getResourceHandler().
                          createResource(resourceName, libraryName);
                  InputStream propertiesInputStream = null;
                  try {
                      propertiesInputStream = result.getInputStream();
                      resourceBundle = new PropertyResourceBundle(propertiesInputStream);
                  } catch (IOException ex) {
                      Logger.getLogger(UIComponent.class.getName()).log(Level.SEVERE, null, ex);
                  } finally{
                      if(null != propertiesInputStream){
                          try{
                              propertiesInputStream.close();
                          } catch(IOException ioe){
                              if (LOGGER.isLoggable(Level.SEVERE)) {
                                  LOGGER.log(Level.SEVERE, null, ioe);
                              }
                          }
                      }
                  }
              }
          }
          result = (null != resourceBundle) ? result : null;
          
          return result;
      }
docs: way to handle this.