private static function GetHistoryService() { if (self::$historyService == null && CModule::IncludeModule('bizproc')) { $runtime = CBPRuntime::GetRuntime(); $runtime->StartRuntime(); self::$historyService = $runtime->GetService("HistoryService"); } return self::$historyService; }