public static CatchupStatusAdminResponse readFrom(DataInputStream stream) throws IOException {
    AdminResponse adminResponse = AdminResponse.readFrom(stream);
    Short versionId = stream.readShort();
    if (!versionId.equals(VERSION_V1)) {
      throw new IllegalStateException("Unrecognized version for CatchupStatusAdminResponse: " + versionId);
    }
    return new CatchupStatusAdminResponse(stream.readByte() == 1, adminResponse);
  }
Reads from a stream and constructs a {@link CatchupStatusAdminResponse}.
@param stream the stream to read from
@return the {@link CatchupStatusAdminResponse} constructed from the {@code stream}.
@throws IOException if there is any problem reading from the stream
ambry-protocol/src/main/java/com/github/ambry/protocol/CatchupStatusAdminResponse.java