public String getGoogleMapsXMLQuery(GeoAdresse pAdresse) throws UnsupportedEncodingException {
        // http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true
        // Removes whitespace between a word character and . or ,
        String pattern = "(\\s+)"; // "([\\p{Space}]+)"; 
        /*
        StringBuilder vStrBuilder = new StringBuilder("xml?address=")
                .append("").append((this.getHouseIdentifier() != null ? this.getHouseIdentifier().trim().replaceAll(pattern, "+") : ""))
                .append("+").append(this.getStreet() != null ? this.getStreet().trim().replaceAll(pattern, "+") : "")
                .append(",+").append(this.getPostalCode() != null ? this.getPostalCode().trim().replaceAll(pattern, "+") : "")
                .append(",+").append(this.getLocalityName() != null ? this.getLocalityName().trim().replaceAll(pattern, "+") : "")
                .append(",+").append(this.getStateOrProvinceName() != null ? ",+" + this.getStateOrProvinceName().replaceAll(pattern, "+") : "")
                .append(",+").append(this.getCountryName() != null ? this.getCountryName().trim().replaceAll(pattern, "+") : "")
                .append("&sensor=true");
        return vStrBuilder.toString();
         */
        String vCountryLongName = null;
        StringBuilder vStrBuilder =
            new StringBuilder("xml?address=")

                // -- HausNummer Strasse
                .append(
                    (pAdresse.getHouseIdentifier() != null ? URLEncoder.encode(pAdresse
                        .getHouseIdentifier().trim().replaceAll(pattern, " "), "UTF-8") : ""))
                .append(
                    pAdresse.getStreet() != null ? URLEncoder.encode(" "
                        + pAdresse.getStreet().trim().replaceAll(pattern, " "), "UTF-8") : " ")

                // -- PLZ Ort
                .append(",")
                .append(
                    pAdresse.getPostalCode() != null ? URLEncoder.encode(" "
                        + pAdresse.getPostalCode().trim().replaceAll(pattern, " "), "UTF-8") : "")
                .append(
                    pAdresse.getLocalityName() != null ? URLEncoder.encode(" "
                        + pAdresse.getLocalityName().trim().replaceAll(pattern, " "), "UTF-8") : "")

                // -- Bundesland
                .append(",")
                .append(
                    pAdresse.getStateOrProvinceName() != null ? URLEncoder.encode(" "
                        + pAdresse.getStateOrProvinceName().replaceAll(pattern, " "), "UTF-8") : "")

                // -- Land
                .append(",")
                .append(
                    ((pAdresse.getCountryName() != null) && ((vCountryLongName =
                        countryLongName(pAdresse.getCountryName().trim().replaceAll(pattern, " "))) != null)) ? URLEncoder
                        .encode(" " + vCountryLongName, "UTF-8") : "")
                /*
                .append(",").append(
                    pAdresse.getCountryName() != null ? URLEncoder.encode(" "
                        + pAdresse.getCountryName().trim().replaceAll(pattern, " "), "UTF-8") : "")
                 */
                .append("&sensor=true");
        //.append("&sensor=false");
        System.out.println("\n" + vStrBuilder.toString());
        return vStrBuilder.toString();
    }