IDE-1631 Change the logic that add resource bundle element by portlet name

This should check first for the last supported-locale  and put resource bundle after that, or if no supported-locale then check for supports which must be there and put it after that.