Refactored to parse component

- added convertComponents() and to use it for parsing attribute parameters