Github user cshannon commented on the issue:
https://github.com/apache/activemq-artemis/pull/1959
Shouldn't we just have the getPersistentSize() method open/close the
encoder? The idea is that this method might be called by anyone as it is
public so this is a bigger issue than just in the toString call---
