if (key == null) {
// Setting Required property to collect the sequence statistics
boolean isStatisticsEnable
= (org.apache.synapse.Constants.STATISTICS_ON == statisticsEnable);
if (isStatisticsEnable) {
StatisticsStack sequenceStack
= (StatisticsStack) synCtx.getProperty(Constants.SEQUENCE_STATISTICS_STACK);
if (sequenceStack == null) {
sequenceStack = new SequenceStatisticsStack();
synCtx.setProperty(Constants.SEQUENCE_STATISTICS_STACK, sequenceStack);
}
String seqName = (name == null ? Constants.ANONYMOUS_SEQUENCES : name);
boolean isFault =synCtx.getEnvelope().getBody().hasFault();
sequenceStack.put(seqName,System.currentTimeMillis(),
!synCtx.isResponse(), isStatisticsEnable,isFault);
}
try {
if (shouldTrace) {
trace.trace("Start : Sequence <" + (name == null ? "anonymous" : name) + ">");