Back in 2004, when JDOM was in 'beta', the getParent()
signature was changed and the getParentElement()
was added. Freemarker is compiled with JDOM beta 0.8 (from 2002 - 11 years ago).
I would recommend that you contact the Freemarker tean and suggest an update to support both JDOM 1.1.3 as well as 2.0.5