throw new LoginException(MessageFormat.format(pattern, getName()));
}
} catch (IOException e) {
LoginException io = new LoginException("A server error occurred when logging in user.");
io.initCause(e);
throw io;
}
//now force the queue to be synced up so that we will know what is in the queue
//and what isn't