code: @Override
      public SearchResult getGroups(String pattern, int limit) throws RegistryException {
          if (pattern == null) {
              throw new IllegalArgumentException("pattern is null");
          }
          if (pattern.isEmpty()) {
              throw new IllegalArgumentException("pattern is an empty String");
          }
          return new SearchResult();
      }
docs: {@inheritDoc}