// Check what Messagetype we got here
StringTokenizer st = new StringTokenizer(firstLine, " ");
st.nextToken(); // GNTP/<version>
String messageType = st.nextToken(); // <messagetype>
if (messageType.equals(GNTPMessage.NOTIFY)) {
retVal = new NotifyMessage();
} else if (messageType.equals(GNTPMessage.REGISTER)) {
retVal = new RegisterMessage();
} else if (messageType.equals(GNTPMessage.SUBSCRIBE)) {
retVal = new SubscribeMessage();
} else {