public static void close(URLConnection conn) {
        if (conn instanceof HttpURLConnection) {
            ((HttpURLConnection) conn).disconnect();
        }
    }
Closes a URLConnection.

@param conn the connection to close.
@since 2.4
pay-java-common/src/main/java/com/egzosn/pay/common/util/IOUtils.java