ChangePath[] cp = (ChangePath[]) clientChangePaths.toArray(new ChangePath[clientChangePaths.size()]);
    public static LogMessage createLogMessage(SVNLogEntry logEntry) {        if(logEntry == null){            return null;        }        Map cpaths = logEntry.getChangedPaths();        Collection clientChangePaths = new ArrayList();        for (Iterator iter = cpaths.keySet().iterator(); iter.hasNext();) {            String path = (String) iter.next();            SVNLogEntryPath entryPath = (SVNLogEntryPath)cpaths.get(path);            if(entryPath != null){                clientChangePaths.add(new ChangePath(path, entryPath.getCopyRevision(), entryPath.getCopyPath(), entryPath.getType()));            }        }        ChangePath[] cp = (ChangePath[]) clientChangePaths.toArray(new ChangePath[clientChangePaths.size()]);        return new LogMessage(logEntry.getMessage(), logEntry.getDate(),                logEntry.getRevision(), logEntry.getAuthor(), cp);    }