Nicer header log.
Rework the code.
Fix: serialize header sender object
Use strpos instead of substring comparison.
Use instanceof instead of is_subclass_of