public static String parsePropertyFromUrl(final String url, final String key) {
    String[] tokens = url.split(";");
    for (String token : tokens) {
      if (token.trim().startsWith(key.trim() + "=")) {
        return token.trim().substring((key.trim() + "=").length());
      }
    }
    return null;
  }
The function iterates through the list of cookies in the cookiestore and tries to
match them with the cookieName. If there is a match, the cookieStore already
has a valid cookie and the client need not send Credentials for validation purpose.
@param cookieStore The cookie Store
@param cookieName Name of the cookie which needs to be validated
@param isSSL Whether this is a http/https connection
@return true or false based on whether the client needs to send the credentials or
not to the server.
jdbc/src/java/org/apache/hive/jdbc/Utils.java