private DefaultLoadHandler getLoadHandler(File repositoryRoot, boolean usePreCommitHook,
boolean usePostCommitHook, SVNUUIDAction uuidAction, String parentDir) throws SVNException {
if (myLoadHandler == null) {
FSFS fsfs = SVNAdminHelper.openRepository(repositoryRoot, true);
DefaultLoadHandler handler = new DefaultLoadHandler(usePreCommitHook, usePostCommitHook, uuidAction,
parentDir, myEventHandler);
handler.setFSFS(fsfs);
myLoadHandler = handler;
} else {
myLoadHandler.setUsePreCommitHook(usePreCommitHook);
myLoadHandler.setUsePostCommitHook(usePostCommitHook);
myLoadHandler.setUUIDAction(uuidAction);