code: public void setObjectGroups(Map<String, List<String>> objectGroups) {
          this.objectGroups.clear();
          if (objectGroups != null) {
              this.objectGroups.putAll(objectGroups);
          }
      }
docs: Clears the current object groups list and sets new group list
  @param objectGroups