class Content {

	public static Locale getLocale(Label label) {
		return Optional.ofNullable(label.localeLanguageTag()).filter(StringUtils::isNotEmpty)
				.map(Locale::forLanguageTag).orElse(Locale.getDefault());
	}

}