Modified resource to use @Component annotation instead of @Service