private boolean tryToRemoveLock(SailReadOnlyException e, Repository repo)
throws IOException, StoreException
{
boolean lockRemoved = false;
LockManager lockManager = new DirectoryLockManager(repo.getDataDir());
if (lockManager.isLocked()) {
if (askProceed("WARNING: The lock from another process on this repository needs to be removed", true))
{
repo.shutDown();
lockRemoved = lockManager.revokeLock();
repo.initialize();
}
}
return lockRemoved;