@Override
        public Locale convertToEntityAttribute(String localeLanguageTag) {
            if (localeLanguageTag == null || StringUtils.isBlank(localeLanguageTag)) {
                return Locale.getDefault();
            }
            return new Locale.Builder().setLanguageTag(localeLanguageTag).build();
        }
Convert language tag string into a {@link Locale} using {@link Locale.Builder}.
manager/api/beans/src/main/java/io/apiman/manager/api/beans/BeanUtils.java