def METHOD_NAME(self, component_id: str, container: typing.Any = None, item: typing.Any = None, **kwargs: typing.Any) -> typing.Optional[Declarative.HandlerLike]:
    # this is called to construct contained declarative component handlers within this handler.
    if component_id == "activity":
        assert container is not None
        assert item is not None
        activity = typing.cast(Activity.Activity, item)
        for component in Registry.get_components_by_type("activity-component-factory"):
            activity_handler = typing.cast(ActivityComponentFactory, component)
            activity_component = activity_handler.make_activity_component(activity)
            if activity_component:
                return activity_component
        return ActivityHandler(activity)
    return None