protected static function addPathPrefixIfNeeded( $url )
    {
        $siteINI = eZINI::instance( 'site.ini' );
        if ( $siteINI->hasVariable( 'SiteAccessSettings', 'PathPrefix' ) )
        {
            $pathPrefix = $siteINI->variable( 'SiteAccessSettings', 'PathPrefix' );
            if ( !empty( $pathPrefix ) )
            {
                $url = $pathPrefix . '/' . $url;
            }
        }
        return $url;
    }