public JFreeChart createWallclockChart(String expId) {
ExperimentPersistencyRemote edao = ExperimentPersistencyImpl.getInstance();
long eid = Long.parseLong(expId);
log.info("Building experiment chart for eid = "+eid);
Experiment exp = edao.findExperiment(eid);
final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
final String expName = exp.getExperimentSetup().getBasicProperties().getExperimentName();
boolean hasSuccesses = false;
boolean hasFails = false;
for( BatchExecutionRecordImpl batch : exp.getExperimentExecutable().getBatchExecutionRecords() ) {
int i = 1;
List<ExecutionRecordImpl> runs = new ArrayList<ExecutionRecordImpl>(batch.getRuns());
Collections.sort(runs, new RunComparator() );
for( ExecutionRecordImpl exr : runs ) {
//log.info("Found Record... "+exr+" stages: "+exr.getStages());