private CacheListener wrapRegionMembershipListener(CacheListener cl){
  if (cl instanceof RegionMembershipListener) {
    return new WrappedRegionMembershipListener((RegionMembershipListener)cl);
  }
  return cl;
}

private CacheListener wrapRegionMembershipListener ( CacheListener cl ) { if ( cl instanceof RegionMembershipListener ) { return new WrappedRegionMembershipListener ( ( RegionMembershipListener ) cl ) ; } return cl ; }
we wrap regionmembershiplisteners in a container when adding them at runtime , so that we can properly initialize their membership set prior to delivering events to them .
