I'd call `parseRuntimeConfiguration(true)` here instead of parsing the full config. The reason is that `getWWWServiceIndex()` uses the runtime config, too, to determine the SNMP index. Because of conditional directives like `IfModule`, `IfDefine` or `IfVersion`, the number of vhosts discovered by the two methods could differ so you could get a wrong vhost directive or even `IndexOutOfBoundsException`.