SONARJAVA-817 wait() should be called within a while loop
Update sqale model