Fixed the annotation for the component service.

TODO: Return and add validation to the functions for quick error object creation.