// write the result message
private void writeMessageToOuputStream() throws IOException {
if (messageResult.getMsgType().equalsIgnoreCase(MESSAGE_RESULT_TEXT)) {
messageResultHandler = new MessageResultHandlerText();
} else if (messageResult.getMsgType().equalsIgnoreCase(MESSAGE_RESULT_NEWS)) {
messageResultHandler = new MessageResultHandlerNews();
} else if (messageResult.getMsgType().equalsIgnoreCase(MESSAGE_RESULT_MUSIC)) {
messageResultHandler = new MessageResultHandlerMusic();
}
String resultContent = messageResultHandler.buildMessageResult(messageResult);
// String resultContent = ResourceManager.getValue("result");