Working a new solution for URL.setURLStreamHandlerFactory.