private static String[] getDayNames(String type, Locale locale) {
        if (type != null && type.equalsIgnoreCase("xs")) {
            String[] days = new DateFormatSymbols(locale).getShortWeekdays();
            String[] xsDays = new String[days.length];
            for (int i = 0; i < days.length; i++) {
                xsDays[i] = (days[i].equals("")) ? days[i] : days[i].charAt(0) + "";
            }
            return xsDays;
        }
        if (type != null && type.equalsIgnoreCase("s")) {
            return new DateFormatSymbols(locale).getShortWeekdays();
        } else {
            return new DateFormatSymbols(locale).getWeekdays();
        }
    }