SOS-1819 Pattern needed for making component available throughout the portlet
SOS-1878 the least code duplication is achieved by removing showMessage from main.js