String (Map<String, String> parameters) { Element element = new Element(ArchivedProjectTemplate.TEMPLATE); for (Map.Entry<String, String> entry : parameters.entrySet()) { Element field = new Element(ArchivedProjectTemplate.INPUT_FIELD); field.setText(entry.getValue()); field.setAttribute(ArchivedProjectTemplate.INPUT_DEFAULT, entry.getKey()); element.addContent(field); } return JDOMUtil.writeElement(element); }