This is similar to the Lochinvar tale included in Sir Walter Scott's Marmion; indeed, in one variant, the hero is named Lochinvar.
The estate subsequently belonged to the Gordons, of Lochinvar, of whom Sir John was created Lord of Lochinvar and Viscount Kenmure, in 1633; but it became forfeited to the crown in the time of William, the sixth viscount, who was attainted for his participation in the rebellion of 1715, and beheaded on Tower Hill, London, in the following year.