#53718Clean up / CGL improve RelationHandler class
Description
In the RelationHandler class there are currently some code style issues.
These include the initialization of unused variables, not initializing used variables properly, missing class properties, invalid variable types and invalid return values.