Extended MongoDB UOW to support entity Id generation.