*/
private void handleContact(WCSInfo config) {
String tmp = "";
GeoServerInfo geoServer = config.getGeoServer().getGlobal();
ContactInfo contact = geoServer.getContact();
String cp = contact.getContactPerson();
String org = contact.getContactOrganization();
if (((cp != null) && (cp != ""))
|| ((org != null) && (org != ""))) {
start("responsibleParty");
tmp = cp;
if ((tmp != null) && (tmp != "")) {
element("individualName", tmp);
tmp = org;
if ((tmp != null) && (tmp != "")) {
element("organisationName", tmp);
}
} else {
tmp = org;
if ((tmp != null) && (tmp != "")) {
element("organisationName", tmp);
}
}
tmp = contact.getContactPosition();
if ((tmp != null) && (tmp != "")) {
element("positionName", tmp);
}
start("contactInfo");
start("phone");
tmp = contact.getContactVoice();
if ((tmp != null) && (tmp != "")) {
element("voice", tmp);
}
tmp = contact.getContactFacsimile();
if ((tmp != null) && (tmp != "")) {
element("facsimile", tmp);
}
end("phone");
start("address");
tmp = contact.getAddressType();
if ((tmp != null) && (tmp != "")) {
String addr = "";
addr = contact.getAddress();
if ((addr != null) && (addr != "")) {
element("deliveryPoint", tmp + " " + addr);
}
} else {
tmp = contact.getAddress();
if ((tmp != null) && (tmp != "")) {
element("deliveryPoint", tmp);
}
}
tmp = contact.getAddressCity();
if ((tmp != null) && (tmp != "")) {
element("city", tmp);
}
tmp = contact.getAddressState();
if ((tmp != null) && (tmp != "")) {
element("administrativeArea", tmp);
}
tmp = contact.getAddressPostalCode();
if ((tmp != null) && (tmp != "")) {
element("postalCode", tmp);
}
tmp = contact.getAddressCountry();
if ((tmp != null) && (tmp != "")) {
element("country", tmp);
}
tmp = contact.getContactEmail();
if ((tmp != null) && (tmp != "")) {
element("electronicMailAddress", tmp);
}