question: private void addDatasetsToPlotStates ( ) { if ( datasetList . isEmpty ( ) ) { throw new ParserException ( "You must specify at least one dataset." ) ; } int actualAutoDatasetNr = 0 ; for ( PlotState plotState : parserResult . getPlotStateList ( ) ) { actualAutoDatasetNr = addDataset ( plotState , actualAutoDatasetNr ) ; for ( PlotState subPlotState : plotState . getSubplots ( ) ) { log . info ( "Add dataset for subplot" ) ; actualAutoDatasetNr = addDataset ( subPlotState , actualAutoDatasetNr ) ; } } }
target:  Is called after parsing everything to fill datasets in each plotState Object