setIdGenerator

Provide a custom ID generator. This is mainly used for unit testing. If a value is not provided, a default implementation will be used.