public static String convertPattern(String pattern) {
        if (pattern == null) {
            return null;
        }
        else {
            return PATTERN_CONVERTER.convert(pattern);
        }
    }
Converts a java date pattern to a jquery UI date picker pattern.

@param pattern Pattern to be converted
@return converted pattern
primefaces/src/main/java/org/primefaces/util/CalendarUtils.java