StatisticsCollector statisticsCollector = getStatisticsCollector(synCtx);
boolean isFault = synCtx.getEnvelope().getBody().hasFault();
SequenceStatisticsStack sequenceStatisticsStack = (SequenceStatisticsStack)
synCtx.getProperty(Constants.SEQUENCE_STATISTICS_STACK);
if (sequenceStatisticsStack != null) {
sequenceStatisticsStack.reportAllToStatisticsCollector(statisticsCollector,isFault);
}
}
/**
* A helper method to get StatisticsCollector from the Synapse Message Context
*