code: static void populateIfChanged(CallInfo callInfo, DataSet data) {
      Table table = asTable(data.getSource()); 
      if ( table.getDirtyStatus() ) {
        table.setDirtyStatus(true);
        doPopulate(callInfo, table, data);
      }
    }
docs: Populate database table with a data set, if associated table
  has changed.
  
  @param callInfo Call Info.
  @param data Data Set.