code: public static InputStream getResourceAsStream(String pPath) {
          for (ClassLoader loader : new ClassLoader[] {
                  Thread.currentThread().getContextClassLoader(),
                  ClassUtil.class.getClassLoader()
          } ) {
              if (loader != null) {
                  InputStream is = loader.getResourceAsStream(pPath);
                  if (is != null) {
                      return is;
                  }
              }
          }
          return null;
      }
docs: Get the given path as an input stream or return <code>null</code> if not found
  
  @param pPath path to lookup
  @return input stream or null if not found.