private SnapshotCodec getCurrentCodec ( ) { if ( codecs . isEmpty ( ) ) { throw new IllegalStateException ( String . format ( "No codecs are registered." ) ) ; } return codecs . get ( codecs . lastKey ( ) ) ; }
Retrieve the current snapshot codec that is the codec with the highest known version .