// Select the next behaviour to execute
Behaviour currentBehaviour = myScheduler.schedule();
long oldRestartCounter = currentBehaviour.getRestartCounter();
// Just do it!
currentBehaviour.actionWrapper();
// When it is needed no more, delete it from the behaviours queue
if(currentBehaviour.done()) {
currentBehaviour.onEnd();
myScheduler.remove(currentBehaviour);