public ICookie getCookie(String cookieName) {
        for (ICookie cookie : cookies) {
            if (cookie.getName().equals(cookieName)) {
                return cookie;
            }
        }

        return null;
    }
public ICookie getCookie ( String cookieName ) { for ( ICookie cookie : cookies ) { if ( cookie . getName ( ) . equals ( cookieName ) ) { return cookie ; } } return null ; }
Returns the _first_ cookie matching <tt>cookieName</tt>. Objects returned
by this method are of the class burp.impl.Cookie which implements the
burp.ICookie interface.

@param cookieName The name of the cookie to return
@return The cookie, or null if there is no cookie by that name in the response.