if (isAgent(name) && canRestartAgent(name)) { restartAgent(name); }
setExpiration(name, (int)getTimeout(name)); if (isAgent(name) && canRestartAgent(name)) { restartAgent(name); }
    public void enter(String name) {        if (isAgent(name) && canRestartAgent(name)) {          restartAgent(name);        }    }