RestService :: validateActivityDocumentType: Bitrix method

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

    
private static function validateActivityDocumentType($documentType)
    {
        try
        {
            
$runtime = \CBPRuntime::getRuntime();
            
$runtime->startRuntime();
            
/** @var \CBPDocumentService $documentService */
            
$documentService $runtime->getService('DocumentService');
            
$documentService->getDocumentFieldTypes($documentType);
        }
        catch (\
CBPArgumentNullException $e)
        {
            throw new 
RestException('Wrong activity DOCUMENT_TYPE!'self::ERROR_ACTIVITY_VALIDATION_FAILURE);
        }
    }