Upgrade opensearch from 1.3.13 to 2.11.1 issue

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
from 1.3.13 to 2.11.1

Describe the issue:
Hello, I upgraded opensearch from 1.3.13 to 2.11.1 it seems in BulkItemResponse class, getType() is removed, so I want to ask what is the alternative of getType()?

 private void examineBulkDeleteResponse(BulkItemResponse deleteResponse) {
      if (deleteResponse.isFailed()) {
          logger.error("Error during deletion of item with ID {} and type {} from new index {} for tenant {}. Reason: {}",
          deleteResponse.getId(), deleteResponse.getType(), nextIndexName, tenant, deleteResponse.getFailureMessage());
          batchDeleteResponseStats.incrementFailed();
       } 
  }

Configuration:

Relevant Logs or Screenshots:

Hey, there is no alternative to mapping types: they have been deprecated for a long time and removed in 2.x release.