public void saveViewsFor(DataSource dataSource,Snapshot snapshot){
  Set<DataSourceViewProvider> compatibleProviders=getCompatibleProviders(dataSource);
  for (  DataSourceViewProvider compatibleProvider : compatibleProviders)   if (compatibleProvider.supportsViewFor(dataSource) && compatibleProvider.supportsSaveViewFor(dataSource,snapshot.getClass()))   compatibleProvider.viewSaveView(dataSource,snapshot);
}

public void saveViewsFor ( DataSource dataSource , Snapshot snapshot ) { Set < DataSourceViewProvider > compatibleProviders = getCompatibleProviders ( dataSource ) ; for ( DataSourceViewProvider compatibleProvider : compatibleProviders ) if ( compatibleProvider . supportsViewFor ( dataSource ) && compatibleProvider . supportsSaveViewFor ( dataSource , snapshot . getClass ( ) ) ) compatibleProvider . viewSaveView ( dataSource , snapshot ) ; }
saves views for the datasource into the snapshot .
