public synchronized void cleanUpLocks() { // only need to do this on repositories that have been used; i.e., not including // just-initialized repositories if (repository != null) { try { repository.getRepositoryLockManager().cleanUpLocks(); } catch (Throwable t) { getLogger().error(t, JcrI18n.errorCleaningUpLocks, repository.getRepositorySourceName()); } } }