removed unused loop labels
added missing override
cookieVal cannot be null at this point since will get NullPointerExcepion on the previous .trim methods
removed unused imports and redundant type info