if (sc == null) {
logger().debugv("ModeShape metric handler for repository {0} ignoring runtime step because the monitoring service is unavailable." +
"Most likely the repository has been removed", repositoryName);
return;
}
final RepositoryMonitor repoStats = (RepositoryMonitor)sc.getValue();
try {
final History history = history(repoStats);
final Statistics[] stats = history.getStats();