_startUrl = _existBaseUrl.replaceFirst("http:", "xmldb:exist:") + "/xmlrpc";
_startUrl = _existBaseUrl .replaceFirst("http:", "xmldb:exist:") .replaceAll("-", "%2D") + "/xmlrpc";
    public JnlpHelper(JnlpFiles jnlpFiles, HttpServletRequest request) {                // Store objects        _jnlpFiles=jnlpFiles;        _request=request;                // Format URL: "http://host:8080/CONTEXT/webstart/exist.jnlp"        _currentUrl = _request.getRequestURL().toString();                // Find BaseUrl http://host:8080/CONTEXT        int webstartPos = _currentUrl.indexOf("/webstart");        _existBaseUrl = _currentUrl.substring(0, webstartPos);                // Find codeBase for jarfiles http://host:8080/CONTEXT/webstart        _codeBase = _existBaseUrl+"/webstart";                 // Reconstruct location http://host:8080/CONTEXT/webstart.exist.jnlp        _href = _currentUrl;                // Find URL to connect to with client               _startUrl = _existBaseUrl.replaceFirst("http:", "xmldb:exist:") + "/xmlrpc";    }