Support sharded DuplicateKey exceptions

JAVA-1103
Done