public void createTableEntity(String tableName, TableEntity tableEntity) {
    Throwable throwable = null;
    try {
      getTableClient(tableName).createEntity(tableEntity);
    } catch (TableServiceException tse) {
      throwable = (tse.getValue().getErrorCode() != TableErrorCode.ENTITY_ALREADY_EXISTS) ? tse : null;
    } catch (Throwable e) {
      throwable = e;
    } finally {
      if (throwable != null) {
        azureMetrics.tableEntityCreateErrorCount.inc();
        logger.error("Failed to insert table entity {}/{} in {} due to {}",
            tableEntity.getPartitionKey(), tableEntity.getRowKey(), tableName, throwable);
        throwable.printStackTrace();
      }
    }
  }
Inserts a row in Azure Table
An Azure Table Entity is a row with paritionKey and rowKey
@param tableName Name of the table in Azure Table Service
@param tableEntity Table row to insert
ambry-cloud/src/main/java/com/github/ambry/cloud/azure/AzureCloudDestinationSync.java