int length = SVNBase64.base64ToByteArray(cdata, bytes);
int length = SVNBase64.base64ToByteArray(new StringBuffer(cdata.toString().trim()), bytes);
	protected void endElement(DAVElement parent, DAVElement element, StringBuffer cdata) throws SVNException {        if (element == FILE_REVISION) {            if (myPath != null && myFileRevisionsHandler != null) {                // handle file revision if was not handled yet (no tx delta).                if (myProperties == null) {                    myProperties = Collections.EMPTY_MAP;                }                if (myPropertiesDelta == null) {                    myPropertiesDelta = Collections.EMPTY_MAP;                }                SVNFileRevision revision = new SVNFileRevision(myPath, myRevision, myProperties, myPropertiesDelta);                myFileRevisionsHandler.openRevision(revision);            }            // handle close revision with props?            if (myFileRevisionsHandler != null) {                myFileRevisionsHandler.closeRevision(myPath);            }            myPath = null;            myProperties = null;            myPropertiesDelta = null;            myPropertyEncoding = null;            myPropertyName = null;        } else if (element == TX_DELTA) {            setDeltaProcessing(false);            myCount++;        } else if (element == REVISION_PROPERTY) {            if (myProperties == null) {                myProperties = new HashMap();            }            myProperties.put(myPropertyName, cdata != null ? cdata.toString() : "");            myPropertyName = null;        } else if (element == SET_PROPERTY) {            if (myPropertiesDelta == null) {                myPropertiesDelta = new HashMap();            }            if (myPropertyName != null) {                String value;                if ("base64".equals(myPropertyEncoding)) {                    byte[] bytes = allocateBuffer(cdata.length());                    int length = SVNBase64.base64ToByteArray(cdata, bytes);                    try {                        value = new String(bytes, 0, length, "UTF-8");                    } catch (UnsupportedEncodingException e) {                        value = new String(bytes, 0, length);                    }                } else {                    value = cdata.toString();                }                myPropertiesDelta.put(myPropertyName, value);            }            myPropertyName = null;            myPropertyEncoding = null;        } else if (element == DELETE_PROPERTY) {            if (myPropertiesDelta == null) {                myPropertiesDelta = new HashMap();            }            if (myPropertyName != null) {                myPropertiesDelta.put(myPropertyName, null);            }            myPropertyEncoding = null;            myPropertyName = null;        }    }