The setFlushPolicies method is overwriting Configuration.collectDeviceId property. Since it has a default value and the method creates a new Configuration object without passing the collectDeviceId property, it overwrites it with the default value.
Current implementation:

Proposed fix:
