LPS-39639 Optimize PortletPreferencesFactoryImpl