public static String generateNextRevisionId ( String revisionId ) { validateRevisionId ( revisionId ) ; int generation = generationFromRevId ( revisionId ) ; String digest = createUUID ( ) ; return Integer . toString ( generation + 1 ) + "-" + digest ; }
DBObject IDs have a generation count a hyphen and a UUID .