Converted XML management to the JDOM API.