@Override
  public byte[] getUuidBytesArray() {
    ByteBuffer uuidBuf;
    switch (version) {
      case BLOB_ID_V1:
      case BLOB_ID_V2:
      case BLOB_ID_V3:
      case BLOB_ID_V4:
      case BLOB_ID_V5:
        byte[] uuidBytes = getUuid().getBytes();
        uuidBuf = ByteBuffer.allocate((short) uuidBytes.length);
        uuidBuf.put(uuidBytes);
        break;
      case BLOB_ID_V6:
        uuidBuf = ByteBuffer.allocate(UuidSerDe.SIZE_IN_BYTES);
        UuidSerDe.serialize(uuid, uuidBuf);
        break;
      default:
        throw new IllegalArgumentException("blobId version=" + version + " not supported");
    }
    return uuidBuf.array();
  }
@return the uuid string associated with this BlobId
ambry-commons/src/main/java/com/github/ambry/commons/BlobId.java