private static void handleSleep(TerminalSendAction terminalSendAction) { if (terminalSendAction.getSleep() > 0) { try { if (logger.isDebugEnabled()) { logger.debug( MessageFormat.format( "Sleeping for {0} after action {1}", terminalSendAction.getSleep(), terminalSendAction.getCommand())); } Thread.sleep(terminalSendAction.getSleep()); } catch (InterruptedException e) { logger.fatal(e, e); } } }