     class func defaultLanguage() -> String {
         var defaultLanguage : String = String()
         let preferredLanguage = NSBundle.mainBundle().preferredLocalizations.first! as! String
-        let availableLanguages : [String] = Localize.availableLanguages()
+        let availableLanguages : [String] = self.availableLanguages()
         if (contains(availableLanguages, preferredLanguage)) {
             defaultLanguage = preferredLanguage
         }

            currentLanguage = NSUserDefaults.standardUserDefaults().objectForKey(LCLCurrentLanguageKey) as! String
        }
        else {
            currentLanguage = defaultLanguage()
        }
        return currentLanguage
    }
    
    public class func setCurrentLanguage(language: String) {
        //    TODO: Assert here to check if valid string
        var selectedLanguage: String = String()
        let availableLanguages : [String] = Localize.availableLanguages()
        if (contains(availableLanguages, language)) {
            selectedLanguage = language
        }
        else {
            selectedLanguage = Localize.defaultLanguage()
        }
        NSUserDefaults.standardUserDefaults().setObject(selectedLanguage, forKey: LCLCurrentLanguageKey)
        NSUserDefaults.standardUserDefaults().synchronize()

    }
    
    public class func resetCurrentLanaguageToDefault() {
        setCurrentLanguage(self.defaultLanguage())
    }
}

