@Nonnull
    @Override
    public BaseMessageQueueCommand deserialize(final InputStream inputStream) throws IOException {
        try (inputStream) {
            return deserializeFromByteArray(inputStream.readAllBytes());
        }
    }
This is {@link MessageQueueMessageSerializationHandler}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/registry/pubsub/MessageQueueMessageSerializationHandler.java