The whole episode was a spy spoof using the bulk of the story from Orson Welles The Third Man (1949), even the zither soundtrack.
The stand selling Joseph Cotton Candy is an homage to Joseph Cotton who starred in The Third Man(1949) as the giant Ferris wheel which featured prominently in the movie as meeting place for Harry Lime(Orson Welles character) meets Joseph Cotton character in the film.