protected void activate(ComponentContext ctx) {
try {
// Register the valves with Tomcat
ArrayList<CarbonTomcatValve> valves = new ArrayList<CarbonTomcatValve>();
valves.add(new TenantLazyLoaderValve());
TomcatValveContainer.addValves(valves);
} catch (Throwable e) {
log.error("Error occurred while activating WebappManagementServiceComponent", e);
}
}