@Override
  protected void writeInternal(final Serializable serializableObject,
      final HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException {
    final byte[] messageBody = IOUtils.serializeObject(serializableObject);
    setContentLength(outputMessage, messageBody);
    StreamUtils.copy(messageBody, outputMessage.getBody());
  }
The ServerSerializableObjectHttpMessageConverter class is a Spring HttpMessageConverter for
converting
bytes streams to/from Serializable Objects.

This class is the same as {@link ServerSerializableObjectHttpMessageConverter}. However, to
avoid classloader issues due to the fact that geode-web.war needs to use this converter
as well as geode-core (because the converter is used by gfsh), this class is duplicated in
geode-web. This ensures that the version used by the war will implement
{@link HttpMessageConverter}
from the geode-web war's classloader rather than geode-core's classloader and interoperate
with other classes loaded in the geode-web war's classloader.
<p>

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