private void removeCumulatedStats(ProducerDecoratorBean decorator) {
        if (decorator == null) {
            LOGGER.warn("Decorator is empty");
            return;
        }

        for (ProducerAO producer : decorator.getProducers()) {
            for (Iterator<StatLineAO> statLineIterator = producer.getLines().listIterator(); statLineIterator.hasNext(); ) {
                if (CUMULATED_STAT_NAME_VALUE.equals(statLineIterator.next().getStatName())) {
                    statLineIterator.remove();
                }
            }
        }
    }
private void removeCumulatedStats ( ProducerDecoratorBean decorator ) { if ( decorator == null ) { LOGGER . warn ( "Decorator is empty" ) ; return ; } for ( ProducerAO producer : decorator . getProducers ( ) ) { for ( Iterator < StatLineAO > statLineIterator = producer . getLines ( ) . listIterator ( ) ; statLineIterator . hasNext ( ) ; ) { if ( CUMULATED_STAT_NAME_VALUE . equals ( statLineIterator . next ( ) . getStatName ( ) ) ) { statLineIterator . remove ( ) ; } } } }
Removes cumulated stats from producers inside decorator.
@param decorator {@link ProducerDecoratorBean}