refactoring read/write jms map into MessageImpl