static function prependSiteAccess( $extension, $accessName = false, $ini = false, $globalDir = true, $identifier = null )
    {
        if ( !$accessName )
        {
            $accessName = $GLOBALS['eZCurrentAccess']['name'];
        }

        $extensionSettingsPath = eZExtension::baseDirectory() . '/' . $extension;

        if ( $identifier === null )
        {
            $identifier = "ext-siteaccess:$extension";
        }

        if ( !$ini instanceof eZINI )
        {
            $ini = eZINI::instance();
        }
        $ini->prependOverrideDir( $extensionSettingsPath . '/settings/siteaccess/' . $accessName, $globalDir, $identifier, 'siteaccess' );
    }