LPS-47464 validate before checking, this commit creates regressions - sometimes there is no SCOPE_INDIVIDUAL permissions defined, but is fixed in the subsequent commits

This reverts commit fc38305c896df70d6a7f8b5f0a9c263d96b83119.
LPS-47464 add resource permission reference to company
LPS-47464 add toString to simplify debugging
LPS-47464 make sure to add the default portlet resources if missing
LPS-47464 when checking root portlet, use name as primKey
LPS-47464 portlets don't support ResourceBlocks
LPS-47464 SF
SEMVER auto-generated