jetbrick-commons/src/main/java/jetbrick/lang/LocaleUtils.java
public static String[] decodeLocaleCode(final String localeCode) {
        String[] data = StringUtils.split(localeCode, '_');
        String[] result = new String[] { data[0], "", "" };
        if (data.length >= 2) {
            result[1] = data[1];
            if (data.length >= 3) {
                result[2] = data[2];
            }
        }
        return result;
    }
public static String[] decodeLocaleCode(final String localeCode) {
        String[] data = StringUtils.split(localeCode, '_');
        String[] result = new String[] { data[0], "", "" };
        if (data.length >= 2) {
            result[1] = data[1];
            if (data.length >= 3) {
                result[2] = data[2];
            }
        }
        return result;
    }
Decodes locale code in string array that can be used for <code>Locale</code> constructor.