RestService :: getApp: Bitrix method

      
<?php 
//  Bitrix\Bizproc\RestService :: getApp()
//  /dist/bitrix/modules/bizproc/lib/restservice.php:1662

    
private static function getApp($server)
    {
        if(
self::$app == null)
        {
            if (
Loader::includeModule('rest'))
            {
                
$result AppTable::getList(
                    array(
                        
'filter' => array(
                            
'=CLIENT_ID' => $server->getClientId()
                        )
                    )
                );
                
self::$app $result->fetch();
            }
        }

        return 
self::$app;
    }