public static function clear()
 {
     self::$messages = array();
 }