if (path == null || "".equals(path.trim())) { path = "/"; }
    private HttpMethod sendRequest(String method, String path, Map header, InputStream requestBody) throws SVNException {        if (path == null || "".equals(path.trim())) {            path = "/";        }        EntityEnclosingMethod httpMethod = new CommonsHTTPMethod(method, path);        if (header != null) {            for (Iterator keys = header.keySet().iterator(); keys.hasNext();) {                String key = (String) keys.next();                String value = (String) header.get(key);                httpMethod.addRequestHeader(key, value);            }        }        RequestEntity entity = createRequestEntity(requestBody);        httpMethod.setRequestEntity(entity);        if (entity.getContentLength() < 0) {            httpMethod.setContentChunked(true);        }        try {            getHttpClient().executeMethod(httpMethod);        } catch (HttpException e) {            throw new SVNException(e);        } catch (IOException e) {            throw new SVNException(e);        }        return httpMethod;    }