@Override
  protected Serializable readInternal(final Class<? extends Serializable> type,
      final HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException {
    try {
      ClassLoader classLoader = type.getClassLoader();
      return type.cast(IOUtils.deserializeObject(IOUtils.toByteArray(inputMessage.getBody()),
          classLoader != null ? classLoader : getClass().getClassLoader()));
    } catch (ClassNotFoundException e) {
      throw new HttpMessageNotReadableException(
          String.format("Unable to convert the HTTP message body into an Object of type (%1$s)",
              type.getName()),
          e);
    }
  }
The SerializableObjectHttpMessageConverter class is a Spring HttpMessageConverter for converting
bytes streams to/from Serializable Objects.
<p>

@see java.io.Serializable
@see org.springframework.http.HttpInputMessage
@see org.springframework.http.HttpMessage
@see org.springframework.http.HttpOutputMessage
@see org.springframework.http.MediaType
@see org.springframework.http.converter.AbstractHttpMessageConverter
@since GemFire 8.0
geode-core/src/main/java/org/apache/geode/management/internal/web/http/converter/SerializableObjectHttpMessageConverter.java