private boolean checkMonitor()
    {
        FLAG_ENABLE_BILL_TYPES = false;

        if (EnableBillTypesMonitorThread == null)
            return true;

        Thread.State monStat = EnableBillTypesMonitorThread.getState();

        if (monStat.equals(Thread.State.RUNNABLE) || monStat.equals(Thread.State.TIMED_WAITING))	// запущен поток-монитор
        {
            FLAG_ENABLE_BILL_TYPES_ALARM_DISABLE = true;

            // ждем закрытия потока-монитора
            while(true)
            {
                monStat = EnableBillTypesMonitorThread.getState();
                if (!monStat.equals(Thread.State.RUNNABLE) && !monStat.equals(Thread.State.TIMED_WAITING))
                    break;
            }
        }

        return true;
    }