code: public static Image load(String path)
    {
      BufferedImage image = null;
  
      try
      {
        InputStream in = ImageUtils.class.getClassLoader().getResourceAsStream(path);
        image = ImageIO.read(in);
        in.close();
      }
      catch (Exception e)
      {
        throw new RuntimeException("Could not load image with path: " + path, e);
      }
  
      return image;
  
    }
docs: private static final ClassLoader loader = Thread.currentThread().getContextClassLoader();