code: public InputStream getResource (String rset, String path)
          throws IOException
      {
          // grab the resource bundles in the specified resource set
          ResourceBundle[] bundles = getResourceSet(rset);
          if (bundles == null) {
              throw new FileNotFoundException(
                  "Unable to locate resource [set=" + rset + ", path=" + path + "]");
          }
  
          String localePath = getLocalePath(path);
          // look for the resource in any of the bundles
          for (ResourceBundle bundle : bundles) {
              InputStream in;
              // Try a localized version first.
              if (localePath != null) {
                  in = bundle.getResource(localePath);
                  if (in != null) {
                      return in;
                  }
              }
              // If we didn't find that, try a generic.
              in = bundle.getResource(path);
              if (in != null) {
                  return in;
              }
          }
  
          throw new FileNotFoundException(
              "Unable to locate resource [set=" + rset + ", path=" + path + "]");
      }
docs: Returns an input stream from which the requested resource can be loaded. <em>Note:</em> this
  performs a linear search of all of the bundles in the set and returns the first resource
  found with the specified path, thus it is not extremely efficient and will behave
  unexpectedly if you use the same paths in different resource bundles.
  
  @exception FileNotFoundException thrown if the resource could not be located in any of the
  bundles in the specified set, or if the specified set does not exist.
  @exception IOException thrown if a problem occurs locating or reading the resource.