protected void processAuditStatus(EndpointDefinition definition ,String name , OMElement epOmElement){
if (name == null || "".equals(name)) {
name = SynapseConstants.ANONYMOUS_ENDPOINT;
}
AspectConfiguration aspectConfiguration = new AspectConfiguration(name);
definition.configure(aspectConfiguration);
OMAttribute statistics = epOmElement.getAttribute(
new QName(XMLConfigConstants.STATISTICS_ATTRIB_NAME));
if (statistics != null) {
String statisticsValue = statistics.getAttributeValue();
if (statisticsValue != null) {
if (XMLConfigConstants.STATISTICS_ENABLE.equals(statisticsValue)) {
aspectConfiguration.enableStatistics();
}
}
}
}