Given its provenance - Colm O'Lochlainn used Kennedy extensively, the setting and the wording, The most likely background is that of the First Carlist War and the George De Lacey-Evans Expedition. I've discussed this with the prominent Wexford singer and researcher, Paddy Berry over the last several years.