question: public void parse ( final SetCookie cookie , final String value ) throws MalformedCookieException { if ( cookie == null ) { throw new IllegalArgumentException ( "Cookie may not be null" ) ; } if ( value == null ) { throw new MalformedCookieException ( "Missing value for version attribute" ) ; } int version = - 1 ; try { version = Integer . parseInt ( value ) ; } catch ( NumberFormatException e ) { version = - 1 ; } if ( version < 0 ) { throw new MalformedCookieException ( "Invalid cookie version." ) ; } cookie . setVersion ( version ) ; }
target:  Parse cookie version attribute.