public function __construct($file_name, $service_name = null, $load_plugins = true, $useDefualt = true)
 {
     KalturaServiceConfig::setStrictMode(false);
     if ($load_plugins) {
         $serviceConfigs = array();
         $pluginInstances = KalturaPluginManager::getPluginInstances('IKalturaServices');
         foreach ($pluginInstances as $pluginInstance) {
             $serviceConfigs[] = $pluginInstance->getServiceConfig();
         }
         foreach ($serviceConfigs as $serviceConfig) {
             KalturaServiceConfig::addSecondaryConfigTables($serviceConfig);
         }
     }
     parent::myServiceConfig($file_name, $service_name, $useDefualt);
 }
        if ($add) {
            $serviceConfigFiles[] = $current;
        }
    }
}
foreach ($serviceConfigFiles as $file) {
    // init service config for current file
    resetServiceConfig();
    $partners = getPartners($file);
    if (!$partners || count($partners) == 0) {
        $msg = '***** NOTICE - No partners found for config file [' . $file . ']';
        KalturaLog::notice($msg);
        echo $msg . PHP_EOL;
        continue;
    }
    $serviceConfig = new KalturaServiceConfig($file, null, false, false);
    $servicesTable = $serviceConfig->getAllServicesByCt();
    // for each defined service.action
    foreach ($servicesTable as $ctPath => $services) {
        foreach ($services as $serviceActionName) {
            // get permission item object for the current service/action
            $serviceConfig->setServiceName($serviceActionName);
            $serviceSplit = explode('.', $serviceActionName);
            $serviceName = $serviceSplit[0];
            $actionName = $serviceSplit[1];
            $ticketTypes = explode(',', $serviceConfig->getTicketType());
            $serviceId = $serviceName;
            $pluginName = getPluginNameFromServicesCtPath($ctPath);
            if ($pluginName) {
                $serviceId = strtolower($pluginName) . '_' . $serviceId;
            }