Replaced deprecated @Component annotation with @Parameter annotation.