Changed nextCorrelationId to AtomicLong (from long).