He and Britney ended their three-year relationship in 2002 .