String serviceName = oname.getKeyProperty("service");
String hostName = oname.getKeyProperty("host");
String path = oname.getKeyProperty("path");
String sequence = oname.getKeyProperty("sequence");
Server server = ServerFactory.getServer();
Service service = server.findService(serviceName);
StandardEngine engine = (StandardEngine) service.getContainer();
if (hostName == null) { // if valve's container is Engine
Valve [] valves = engine.getValves();
for (int i = 0; i < valves.length; i++) {
Container container = ((ValveBase)valves[i]).getContainer();
if (container instanceof StandardEngine) {