private boolean isSameProvider(String provider1,String provider2){
  if (provider1 == null) {
    return provider2 == null;
  }
  return provider1.equals(provider2);
}

private boolean isSameProvider ( String provider1 , String provider2 ) { if ( provider1 == null ) { return provider2 == null ; } return provider1 . equals ( provider2 ) ; }
checks whether two providers are the same
