log.debug("Found "+allExps.size()+" experiment(s).");
// Loop through, looking for missing service records.
for( Experiment exp: allExps) {
log.info("Looking at experiment: "+exp.getExperimentSetup().getBasicProperties().getExperimentName());
ExperimentExecutable executable = exp.getExperimentExecutable();
if( executable != null && executable.getBatchExecutionRecords() != null ) {
for( BatchExecutionRecordImpl batch: executable.getBatchExecutionRecords() ) {
for( ExecutionRecordImpl run : batch.getRuns() ) {
for( ExecutionStageRecordImpl stage : run.getStages() ) {
log.info("Looking at stage: " + stage.getStage());
ServiceRecordImpl sr = stage.getServiceRecord();
if( sr != null ) {