*/
private Command handleDecision() {
Command com = null;
FSMState newstate = null;
while (true) {
Decision dec = myState.onNewCycle();
logger.fine(time + " " + myState.getClass().getSimpleName() + " " + dec);
com = dec.getCommand();
newstate = dec.getState();
if (com == null) {
if (myState.getClass() == newstate.getClass()) // VERY IMORTANT
{
cycleConsumed();
return null;