code: private GroupMetadata findGroup(GroupHierarchyConfig config, String parentGroupId) {
          GroupMetadata parentGroup = findByRef(Group.refById(parentGroupId));
  
          return parentGroup.getGroups().stream()
              .filter(group -> group.getName().equals(config.getName()))
              .findFirst()
              .orElse(null);
      }
docs: Find group based on config instance and parent group identifier
  @param config        group hierarchy config
  @param parentGroupId parent group id
  @return GroupMetadata