/**
* Encodes the service metadata section of a WMS capabilities document.
*/
private void handleService() {
WMS wms = request.getWMS();
start("Service");
element("Name", "OGC:WMS");
element("Title", wms.getTitle());
element("Abstract", wms.getAbstract());
handleKeywordList(wms.getKeywords());
AttributesImpl orAtts = new AttributesImpl();
orAtts.addAttribute("", "xmlns:xlink", "xmlns:xlink", "", XLINK_NS);
orAtts.addAttribute(XLINK_NS, "xlink:type", "xlink:type", "",
"simple");
orAtts.addAttribute("", "xlink:href", "xlink:href", "",
wms.getOnlineResource().toExternalForm());
element("OnlineResource", null, orAtts);
element("Fees", wms.getFees());
element("AccessConstraints", wms.getAccessConstraints());
end("Service");
}