public void visitSpec(SpecInfo spec) {
if (!configuration.optimizeRunOrder) return;
final SpecRunHistory history = new SpecRunHistory(spec.getReflection().getName());
safeLoadFromDisk(history);
history.sortFeatures(spec);
spec.addListener(new AbstractRunListener() {
long specStarted;
long featureStarted;
boolean errorOccurred;