class HeaderHelper {

    public static Date parseDateHeader(String header) {
        for (SimpleDateFormat format : DateFormats.formats) {
            try {
                return ((SimpleDateFormat)format.clone()).parse(header);
            } catch (ParseException ignored) {
            }
        }
        throw new IllegalArgumentException(String.format("Not found appropriated date format for %s", header));
    }

    private  HeaderHelper();

}