removed java 7 toLanguageTag method call