ApacheDirectiveTree tree =
ApacheServerDiscoveryComponent.parseRuntimeConfiguration(
new File(tmpDir, "snmp-mapping/httpd.conf").getAbsolutePath(), pinfo, binfo);
HttpdAddressUtility addrUtil = HttpdAddressUtility.get("2.2.17");
List<ApacheDirective> vhosts = tree.search("/<VirtualHost");
List<String> snmpNames = new ArrayList<String>(vhosts.size() + 1);
snmpNames.add(addrUtil.getHttpdInternalMainServerAddressRepresentation(tree).toString(false, false));
for (ApacheDirective vhost : vhosts) {
String vhostDef = vhost.getValues().get(0);
String serverName = null;