if (opName != null) {
if (oldConfiguration.isStatisticsEnable()) {
AspectConfiguration newConfiguration = new AspectConfiguration(
oldConfiguration.getId() + SynapseConstants.STATISTICS_KEY_SEPARATOR +
opName);
newConfiguration.enableStatistics();
StatisticsReporter.reportForComponent(synCtx, newConfiguration,
ComponentType.ENDPOINT);
}
} else {
StatisticsReporter.reportForComponent(synCtx, oldConfiguration,