[LOG4J2-800] All life cycle implementations should be serializable.
Implement missing hashCode() and equals(Object) methods.