CAMEL-4899: Removal of "the unused" and avoidance of unused imports, obsolete casts and deprecated API usages. Also set serialVersionUID class field explicitly to 1L by the Serializable classes (however only by the unit-testing relevant classes)