code:     protected String adjustFilterForJoin(String filter) {
          if (StringUtils.hasText(filter)) {
              filter = filter.replace("displayName", "g.displayName");
              filter = filter.replace("externalGroup", "gm.external_group");
              filter = filter.replace("groupId", "g.id");
              filter = filter.replace("origin", "gm.origin");
          }
          return filter;
      }
  
      @Override
  