// Create root JDOM element
Element rootElement = new Element(TagNames.Elements.ROOT_ELEMENT);
// Create Query element
Element queryElement = new Element(TagNames.Elements.QUERY);
queryElement.addContent(new CDATA(query));
rootElement.addContent(queryElement);
// create a result attribute for the queryID
Attribute resultsIDAttribute = new Attribute(
TagNames.Attributes.NAME, queryID);