*
* @param wcs
* the service.
*/
private void handleContact() {
final GeoServer gs = wcs.getGeoServer();
start("ows:ServiceContact");
ContactInfo contact = gs.getGlobal().getContact();
elementIfNotEmpty("ows:IndividualName", contact.getContactPerson());
elementIfNotEmpty("ows:PositionName", contact.getContactPosition());
start("ows:ContactInfo");
start("ows:Phone");
elementIfNotEmpty("ows:Voice", contact.getContactVoice());
elementIfNotEmpty("ows:Facsimile", contact.getContactFacsimile());
end("ows:Phone");
start("ows:Address");
elementIfNotEmpty("ows:DeliveryPoint", contact.getAddress());
elementIfNotEmpty("ows:City", contact.getAddressCity());
elementIfNotEmpty("ows:AdministrativeArea", contact.getAddressState());
elementIfNotEmpty("ows:PostalCode", contact.getAddressPostalCode());
elementIfNotEmpty("ows:Country", contact.getAddressCountry());
elementIfNotEmpty("ows:ElectronicMailAddress", contact.getContactEmail());
end("ows:Address");
String or = gs.getGlobal().getOnlineResource();
if ((or != null) && !"".equals(or.trim())) {
AttributesImpl attributes = new AttributesImpl();
attributes.addAttribute("", "xlink:href", "xlink:href", "", or);
start("ows:OnlineResource", attributes);
end("OnlineResource");