The pojo is simply data schema for communication between modules. The serialization format can be Java binary object or JSON.