Cloning a RegisteredService should not have to require a cast

Description

The clone() method of a registered service currently returns an object. This can be swapped out with RegisteredService itself to remove the need to cast and also tighten down the return type.

Environment

None

Status

Assignee

Misagh Moayyed

Reporter

Misagh Moayyed

Labels

None

Estimated End Date

None

Audience

None

Components

Fix versions

Affects versions

3.5.0

Priority

Trivial