class InfoProviderFactory {

    public static ConnectionMonitor.InfoProvider forHeaders(final Map<String, String> headers) {
        final String correlationId = extractCorrelationId(headers);
        final Instant timestamp = Instant.now();

        return new ImmutableInfoProvider(correlationId, timestamp, null, headers, supplyEmptyPayload(), false);
    }

    private  InfoProviderFactory();

}