class SentimentEvent {

    public SentimentComposition createSentimentComposition(QueueState queueState){

        SentimentSections sentimentSections = new SentimentSections();

        for (ProgressionUnit progressionUnit : queueState.getStructure()) {
            for(int i=0; i<progressionUnit.getProgressionUnitBars().size(); i++){

                if(i % 2 == 0) {
                    ProgressionUnitBar progressionUnitBar = progressionUnit.getProgressionUnitBars().get(i);

                    SentimentSection sentimentSection = new SentimentSection();
                    sentimentSection.setSentimentLabels(progressionUnitBar.getSentimentLabels());

                    sentimentSections.addSentimentSection(sentimentSection);
                }
            }
        }

        SentimentComposition sentimentComposition = new SentimentComposition();
        sentimentComposition.setCompositionId(queueState.getQueueItem().getQueueItemId());
        sentimentComposition.setSentimentJson(sentimentSections);

        return sentimentComposition;
    }

    @Autowired public  SentimentEvent(ISentimentCompositionDal sentimentCompositionDal);

}