add the BSON fragment generator

Change-Id: I1c7f6ffa8c7dcae422fc14dee6d10b909dc28632