directory.unlock();
if (!directory.unlock()) { break; }
    public void close(boolean unlock) throws SVNException {        if (!unlock || myDirectories == null) {            if (myDirectories != null) {                myDirectories = null;            }            myAnchor.dispose();            myTarget.dispose();            return;        }        myAnchor.dispose();        myAnchor.unlock();        if (myTarget != myAnchor) {            myTarget.dispose();            myTarget.unlock();        }        for (Iterator dirs = myDirectories.values().iterator(); dirs.hasNext();) {            SVNDirectory directory = (SVNDirectory) dirs.next();            directory.unlock();            directory.dispose();        }        myDirectories = null;    }