protected void customizeConnection(URLConnection con) throws IOException {
        ResourceUtils.useCachesIfNecessary(con);
        if (con instanceof HttpURLConnection) {
            customizeConnection((HttpURLConnection) con);
        }
    }
Customize the given {link URLConnection} before fetching the resource.
<p>Calls {link ResourceUtils#useCachesIfNecessary(URLConnection)} and
delegates to {link #customizeConnection(HttpURLConnection)} if possible.
Can be overridden in subclasses.

@param con the URLConnection to customize
@throws IOException if thrown from URLConnection methods
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/core/io/AbstractFileResolvingResource.java