this method should be called setConfig as the component initializes itself