errorMessage = errorMessage.substring(errorMessage.indexOf('<') + 1);
errorMessage = errorMessage.substring(errorMessage.indexOf('>') + 1);
    private void readError(DAVStatus status) throws SVNException {        StringBuffer text = new StringBuffer();        LoggingInputStream stream = null;        try {			stream = createInputStream(status.getResponseHeader(), getInputStream());            byte[] buffer = new byte[1024];            while (true) {                int count = stream.read(buffer);                if (count <= 0) {                    break;                }                text.append(new String(buffer, 0, count));            }        } catch (IOException e) {            throw new SVNException(e);        } finally {	        logInputStream(stream);            close();            String errorMessage = text.toString();            if (errorMessage.indexOf("<m:human-readable") >= 0) {                errorMessage = errorMessage.substring(errorMessage.indexOf("<m:human-readable") + "<m:human-readable".length());                if (errorMessage.indexOf('>') >= 0) {                    errorMessage = errorMessage.substring(errorMessage.indexOf('<') + 1);                }                if (errorMessage.indexOf("</m:human-readable>") >= 0) {                    errorMessage = errorMessage.substring(0, errorMessage.indexOf("</m:human-readable>"));                }            }            errorMessage = errorMessage.trim();            status.setErrorText(errorMessage);        }    }