public static function loadWebServicesClassAndReturnNames($dir = null)
    {
        if ($dir == null) {
            $dir = dirname(__DIR__) . DIRECTORY_SEPARATOR . UtilityConstants::WEBHOOKSDIR;
        }

        $webhooksClassNames = array();

        foreach (glob("{$dir}/*.php") as $fileName) {
            require_once($fileName);
            //get class name
            $className = substr($fileName, strrpos($fileName, '/') + 1);
            //remove extension
            $classNameWithoutExtension = preg_replace('/\\.[^.\\s]{3,4}$/', '', $className);
            array_push($webhooksClassNames, $classNameWithoutExtension);
        }
        return $webhooksClassNames;
    }