code: public void loadPropertyFile(String file, Properties target)
    {
      try
      {
        // Use SecuritySupport class to provide priveleged access to property file
        SecuritySupport ss = SecuritySupport.getInstance();
  
        InputStream is = ss.getResourceAsStream(ObjectFactory.findClassLoader(),
                                                file);
  
        // get a buffered version
        BufferedInputStream bis = new BufferedInputStream(is);
  
        target.load(bis);  // and load up the property bag from this
        bis.close();  // close out after reading
      }
      catch (Exception ex)
      {
        // ex.printStackTrace();
        throw new org.apache.xml.utils.WrappedRuntimeException(ex);
      }
    }
docs: Retrieve a propery bundle from a specified file
  
  @param file The string name of the property file.  The name
  should already be fully qualified as path/filename
  @param target The target property bag the file will be placed into.