LPS-50919 move logic from ConfigurationImpl to portletLayoutListener so that the any portlet can use this framework