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 {
throw new RuntimeException("Unknown Message Type: " + messageType);
}
String encryptionAlgorithmID = null;