Thanks for merging Roberto :)

I totally agree with you that it's not DRY and needs improvements. I didn't want to proceed too much further without agreement. Also I'm not sure what's the best place to add this. For the component params there's a JComponentHelper class (in a legacy folder though). Perhaps it's a good idea to create a JLibraryHelper class?

But maybe first get this merged to keep on topic and then create a new merge request with DRY code with - I think - a JLibraryHelper class? Better suggestions are welcome, I guess you've got more experience with this ;)