* not implement {@link ConsistencyChecker}, or if the associated
* {@link Repository} is not a {@link RepositoryImpl}.
*/
public static ConsistencyReport checkVersionStoreConsistency(Session session, boolean runFix)
throws NotExecutableException, RepositoryException {
Repository r = session.getRepository();
if (!(r instanceof RepositoryImpl)) {
throw new NotExecutableException();
} else {
RepositoryImpl ri = (RepositoryImpl) r;
PersistenceManager pm = ri.getRepositoryContext()