Replaced javax.imageio.spi.ServiceRegistry with java.util.ServiceLoader