public List<Message> getMessages(String username) {
   return messageDao.getMessages(username);
 }
 public void sendMessage(Message message) {
   messageDao.saveOrUpdate(message);
 }