LPS-42611 Introduce method getDefault() and use it instead of the method hasPortletIdInDefaultView()