// JCR-1753: Ensure that we are up to date with cluster changes
ClusterNode cluster = rep.getClusterNode();
if (cluster != null && clusterSyncOnRefresh()) {
try {
cluster.sync();
} catch (ClusterException e) {
throw new RepositoryException(
"Unable to synchronize with the cluster", e);
}
}