}
}
} else { // valve's container is Context
StandardHost host = (StandardHost) engine.findChild(hostName);
path = getPathStr(path);
StandardContext context = (StandardContext) host.findChild(path);
Valve [] valves = context.getValves();
for (int i = 0; i < valves.length; i++) {
Container container = ((ValveBase)valves[i]).getContainer();
if (container instanceof StandardContext) {
String pathName = ((StandardContext)container).getName();