fixes JAVA-1097 deprecate ensureIndex() methods