When registering a local component using the components attribute of the @Component annotation the ClassName of the imported component is used even if that component has it's name attribute set in it's @Component annotation.
The name attribute should always be taken into account when present.