protected function getSPAttributes($spEntityID)
    {
        try {
            $facilities = $this->rpcAdapter->getFacilitiesByEntityId($spEntityID);
            if (empty($facilities)) {
                Logger::warning(
                    "perun:PerunIdentity: No facility with entityID '" . $spEntityID . "' found."
                );
                return;
            }

            $checkGroupMembership = $this->rpcAdapter->getFacilityAttribute(
                $facilities[0],
                $this->facilityCheckGroupMembershipAttr
            );
            if (!is_null($checkGroupMembership)) {
                $this->checkGroupMembership = $checkGroupMembership;
            }

            $facilityVoShortNames = $this->rpcAdapter->getFacilityAttribute(
                $facilities[0],
                $this->facilityVoShortNamesAttr
            );
            if (!empty($facilityVoShortNames)) {
                $this->facilityVoShortNames = $facilityVoShortNames;
            }

            $dynamicRegistration = $this->rpcAdapter->getFacilityAttribute(
                $facilities[0],
                $this->facilityDynamicRegistrationAttr
            );
            if (!is_null($dynamicRegistration)) {
                $this->dynamicRegistration = $dynamicRegistration;
            }

            $this->registerUrl = $this->rpcAdapter->getFacilityAttribute(
                $facilities[0],
                $this->facilityRegisterUrlAttr
            );
            if (is_null($this->registerUrl)) {
                $this->registerUrl = $this->defaultRegisterUrl;
            }

            $allowRegistartionToGroups = $this->rpcAdapter->getFacilityAttribute(
                $facilities[0],
                $this->facilityAllowRegistrationToGroupsAttr
            );
            if (!is_null($allowRegistartionToGroups)) {
                $this->allowRegistrationToGroups = $allowRegistartionToGroups;
            }
        } catch (\Exception $ex) {
            Logger::warning("perun:PerunIdentity: " . $ex);
        }
    }