Generating document ids (UUID) from metadata