}
if("true".equals(ServerConfiguration.getInstance().getFirstProperty("EnableMetering"))){
// Register the Tomcat Valve
ArrayList<CarbonTomcatValve> valves = new ArrayList<CarbonTomcatValve>();
valves.add(new WebAppRequestListener(throttlingAgent));
TomcatValveContainer.addValves(valves);
registerAxis2ConfigurationContextObserver(bundleContext, throttlingAgent.getThrottlingInfoCache());
}else{
log.debug("WebAppRequestListener valve was not added because metering is disabled in the configuration");