* @param suppressUnknownModuleWarnings true if the method should suppress logging the warnings about unknown modules
* @return a new directive tree that represents the runtime configuration
*/
public static ApacheDirectiveTree extract(ApacheDirectiveTree tree, ProcessInfo httpdProcessInfo,
ApacheBinaryInfo httpdBinaryInfo, Map<String, String> moduleNames, boolean suppressUnknownModuleWarnings) {
ApacheDirectiveTree ret = tree.clone();
transform(new TransformingWalker(), ret.getRootNode(),
getNodeInspector(httpdProcessInfo, httpdBinaryInfo, moduleNames, suppressUnknownModuleWarnings, false));
return ret;
}