/**
  * Render a namespace
  * @param string $namespace
  * @param bool $includeCurrentMessages
  * @param bool $forceClearMessages
  * @param array $attr
  * @return string 
  */
 public function renderNamespace($namespace, $includeCurrentMessages = false, $forceClearMessages = true, $attr = array())
 {
     // init : messages
     $messagesHTML = "";
     $messages = $this->flashMessenger->getMessagesFromNamespace($namespace);
     if ($includeCurrentMessages) {
         $messages = array_merge($messages, $this->flashMessenger->getCurrentMessagesFromNamespace($namespace));
     }
     $messages = array_unique($messages);
     foreach ($messages as $message) {
         $messagesHTML .= $this->renderMessage($message, $namespace, $attr);
     }
     // clear messages
     if ($forceClearMessages) {
         $this->flashMessenger->clearMessagesFromNamespace($namespace);
         if ($includeCurrentMessages) {
             $this->flashMessenger->clearCurrentMessagesFromNamespace($namespace);
         }
     }
     return $messagesHTML;
 }