@JsonIgnore
    public ResourceSet asResourceSet(final UserProfile profileResult) {
        val resourceSet = new ResourceSet();
        resourceSet.setIconUri(getIconUri());
        resourceSet.setId(getId());
        resourceSet.setName(getName());
        resourceSet.setScopes(new HashSet<>(getScopes()));
        resourceSet.setUri(getUri());
        resourceSet.setType(getType());
        resourceSet.setOwner(profileResult.getId());
        resourceSet.setClientId(OAuth20Utils.getClientIdFromAuthenticatedProfile(profileResult));
        return resourceSet;
    }
As resource set.

@param profileResult the profile result
@return the resource set
support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/web/controllers/resource/UmaResourceRegistrationRequest.java