private boolean powerUpAndReset(boolean isRepeat)
    {
        //Service.WriteLog("Зашла в powerUpAndReset");
        if (this.poll(true))
        {
            this.ack();
            if (this.reset())
            {
                //Service.WriteLog("крути верти 200 раз");
                for (int i=0; i<200; i++)
                {
                    if (this.poll(true))
                    {
                       // if (this.deviceAnswerSTATE.equals("Unit Disabled"))
                      //  {
                            if (this.setSecurity())
                            {
                                if (this.detectCasherType())
                                {
                                    FLAG_INITIALIZED = true;
                                    //return true;
                                }
                            }
                        }
                    //}
                }
            }
        }
        return true;
        //return (isRepeat) ? this.powerUpAndReset(false) : false;
    }