public static Date parseDate(final MessageHeaders headers, final String headerName) {
        if (headers == null) {
            return null;
        }
        final Header header = headers.getFirstHeader(headerName);
        if (header == null) {
            return null;
        }
        return parseDate(header.getValue(), null, null);
    }
Parses a date value from a header with the given name.

@param headers message headers
@param headerName header name

@return the parsed date or null if input could not be parsed

@since 5.0
ngrinder-runtime/src/main/java/org/apache/hc/client5/http/utils/DateUtils.java