protected String getTileMapDoc(TileLayer layer, GridSubset gridSub, GridSetBroker gsb, MimeType mimeType) {
StringBuilder str = new StringBuilder();
XMLBuilder xml = new XMLBuilder(str);
try {
xml.header("1.0", encoding);
xml.indentElement("TileMap")
.attribute("version", "1.0.0")
.attribute("tilemapservice", urlMangler.buildURL(baseUrl, contextPath, "/service/tms/1.0.0"));
xml.simpleElement("Title", tileMapTitle(layer), true);
xml.simpleElement("Abstract", tileMapDescription(layer), true);