code: public static ModelNode addCurrentServerGroupsToHostInfoModel(boolean ignoreUnaffectedServerGroups, Resource hostModel, ModelNode model) {
          if (!ignoreUnaffectedServerGroups) {
              return model;
          }
          model.get(IGNORE_UNUSED_CONFIG).set(ignoreUnaffectedServerGroups);
          addServerGroupsToModel(hostModel, model);
          return model;
      }
docs: Used by the slave host when creating the host info dmr sent across to the DC during the registration process
  
  @param ignoreUnaffectedServerGroups whether the slave host is set up to ignore config for server groups it does not have servers for
  @param hostModel the resource containing the host model
  @param model the dmr sent across to theDC
  @return the modified dmr