public static boolean isAvailable() {
        try {
            Class.forName("org.brotli.dec.BrotliInputStream");
            return true;
        } catch (final ClassNotFoundException | NoClassDefFoundError e) {
            return false;
        }
    }
Creates a new {@link DecompressingEntity}.

@param entity factory to create decompressing stream.
httpclient5/src/main/java/org/apache/hc/client5/http/entity/BrotliDecompressingEntity.java