// ---------
//
// create a RQuery if a filter was provided
//
/**
 * @var RQuery $objectFilterRQuery
 */
$objectFilterRQuery = null;
if ($objectsFilter !== null) {
    $objectFilterRQuery = new RQuery('service');
    $res = $objectFilterRQuery->parseFromString($objectsFilter, $errorMessage);
    if ($res === false) {
        fwrite(STDERR, "\n\n**ERROR** Rule filter parser: " . $errorMessage . "\n\n");
        exit(1);
    }
    print " - filter after sanitization : " . $objectFilterRQuery->sanitizedString() . "\n";
}
// --------------------
//
// load the config
//
$pan->load_from_domxml($xmlDoc);
print "\n*** config loaded ***\n";
// --------------------
//
// Location Filter Processing
//
// <editor-fold desc=" ****  Location Filter Processing  ****" defaultstate="collapsed" >
/**
 * @var RuleStore[] $ruleStoresToProcess
 */