code: @JsonIgnore
      public ResourceSet asResourceSet(final CommonProfile 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;
      }
docs: As resource set.
  
  @param profileResult the profile result
  @return the resource set