protected StorageDto toStorageDto(ConnectorPartition connectorPartition) {
    if (connectorPartition != null && connectorPartition instanceof ConnectorPartitionDetail) {
      ConnectorPartitionDetail detailMetadata = (ConnectorPartitionDetail) connectorPartition;
      StorageDto storageDto = toStorageDto(detailMetadata.getStorageInfo());
      if (detailMetadata.getAuditInfo() != null) {
        storageDto.setOwner(detailMetadata.getAuditInfo().getCreatedBy());
      }
      return storageDto;
    }

    return null;
  }
  protected StorageDto toStorageDto(ConnectorTableMetadata connectorTableMetadata) {
    if (connectorTableMetadata != null
        && connectorTableMetadata instanceof ConnectorTableDetailMetadata) {
      ConnectorTableDetailMetadata detailMetadata =
          (ConnectorTableDetailMetadata) connectorTableMetadata;
      StorageDto storageDto = toStorageDto(detailMetadata.getStorageInfo());
      storageDto.setOwner(detailMetadata.getOwner());
      return storageDto;
    }

    return null;
  }