map.put("parameters", new ArrayList());
map.put("layerName", "layer");
map.put("units", "degrees");
map.put("pureCoverage", "false");
map.put("styles", new ArrayList());
template.process(map, new OutputStreamWriter(output));
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setValidating(false);
dbf.setExpandEntityReferences(false);