private Message createMessage(String text) throws ExitApplicationException {
Message m = null;
if (text.startsWith("\\")) {
if (text.startsWith("\\nick ")) {
m = new ChangeNickMessage(text.substring(6));
}
else if (text.equals("\\quit")) {
SafeChatClient.printMessage(new Date(), "Client",
"Connection terminated");