Object endpointObj = synCtx.getProperty(SynapseConstants.PROCESSED_ENDPOINT);
if (endpointObj instanceof Endpoint) {
Endpoint endpoint = (Endpoint) endpointObj;
String name = endpoint.getName();
if (name == null) {
endPointStatisticsStack.reportToStatisticsCollector(
statisticsCollector, isFault);
} else {
endPointStatisticsStack.reportToStatisticsCollector(
statisticsCollector, isFault, name);
}