[Java]: Factored out "MessageHeader" constant to CodeGenerator interface.