return (client != null) && client.isConnected();
}
public CommandResponse sendWithoutCallbacks(Command command) throws Throwable {
// handle NotPermittedException in here
CommandResponse ret_response = null;
boolean retry;
do {
retry = false;
ret_response = rawSend(command);
Throwable exception = ret_response.getException();
if (exception instanceof NotPermittedException) {
long pause = ((NotPermittedException) exception).getSleepBeforeRetry();
LOG.debug(CommI18NResourceKeys.COMMAND_NOT_PERMITTED, command, pause);
retry = true;
Thread.sleep(pause);