SVNLock [] retLocks = new SVNLock[locks.size()]; for(int count = 0; count < locks.size(); count++){ retLocks[count] = (SVNLock)locks.get(count); } return retLocks;
    public SVNLock[] getLocks(String path) throws SVNException {        path = getRepositoryPath(path);        String reposPath = SVNPathUtil.canonicalizeAbsPath(path);        String digestPath = FSRepositoryUtil.getDigestFromRepositoryPath(reposPath);        final ArrayList locks = new ArrayList(0);        ISVNLockHandler handler = new ISVNLockHandler(){            public void handleLock(String path, SVNLock lock, SVNErrorMessage error) throws SVNException {                locks.add(lock);            }                        public void handleUnlock(String path, SVNLock lock, SVNErrorMessage error) throws SVNException{            }        };        FSReader.walkDigestFiles(FSRepositoryUtil.getDigestFileFromDigest(digestPath, myReposRootDir), handler, false, myReposRootDir);        if(locks == null || locks.isEmpty()){            return null;        }        SVNLock [] retLocks = new SVNLock[locks.size()];        for(int count = 0; count < locks.size(); count++){            retLocks[count] = (SVNLock)locks.get(count);        }        return retLocks;    }