code: public static InputStream getResourceAsStream(String resource) {
          InputStream in = ClassUtils.getContextClassLoader().getResourceAsStream(resource);
          if (in == null) {
              in = IOUtils.class.getResourceAsStream(resource);
          }
  
          return in;
      }
docs: <p>getResourceAsStream.</p>
  
  @param resource a {@link java.lang.String} object.
  @return a {@link java.io.InputStream} object.