public static AdminResponseWithContent readFrom(DataInputStream stream) throws IOException {
    AdminResponse adminResponse = AdminResponse.readFrom(stream);
    int contentLength = stream.readInt();
    byte[] content = null;
    if (contentLength != 0) {
      content = new byte[contentLength];
      stream.readFully(content);
    }
    return new AdminResponseWithContent(adminResponse.getCorrelationId(), adminResponse.getClientId(),
        adminResponse.getError(), content);
  }
Reads from a stream and constructs an {@link AdminResponseWithContent}.
@param stream  the {@link DataInputStream} to read from.
@return {@link AdminResponseWithContent} that is deserialized from the {@code stream}.
@throws IOException if there is an I/O error reading from {@code stream}
ambry-protocol/src/main/java/com/github/ambry/protocol/AdminResponseWithContent.java