Ported MemoryPoolMessage. mvn test passed.