Date createdDate = created != null ? TimeUtil.parseDate(created) : null;
Date createdDate = created != null ? SVNTimeUtil.parseDate(created) : null;
    public SVNLock doLock(String path, String comment, boolean force, long revision) throws SVNException {        DAVBaselineInfo info = DAVUtil.getBaselineInfo(this, path, -1, false, true, null);        StringBuffer body = DAVGetLockHandler.generateSetLockRequest(null, comment);        Map header = null;        if (revision >= 0) {            header = new HashMap();            header.put("X-SVN-Version-Name", Long.toString(revision));        }        if (force) {            if (header == null) {                header = new HashMap();            }            header.put("X-SVN-Options", "lock-steal");        }        DAVGetLockHandler handler = new DAVGetLockHandler();        DAVStatus status = myHttpConnection.request("LOCK", path, header, body, handler, null);        if (status != null) {            String userName = myHttpConnection.getLastValidCredentials() != null ? myHttpConnection.getLastValidCredentials().getUserName() : null;             String created = (String) status.getResponseHeader().get("X-SVN-Creation-Date");            Date createdDate = created != null ? TimeUtil.parseDate(created) : null;                        return new SVNLock(info.baselinePath, handler.getID(), userName, comment, createdDate, null);        }        return null;    }