public List closeBucketAdvisors(){
  List primariesHeld=Collections.EMPTY_LIST;
  if (this.buckets != null) {
    for (int i=0; i < this.buckets.length; i++) {
      ProxyBucketRegion pbr=this.buckets[i];
      if (pbr.isPrimary()) {
        if (primariesHeld == Collections.EMPTY_LIST) {
          primariesHeld=new ArrayList();
        }
        primariesHeld.add(Integer.valueOf(i));
      }
      pbr.close();
    }
  }
  return primariesHeld;
}

public List closeBucketAdvisors ( ) { List primariesHeld = Collections . EMPTY_LIST ; if ( this . buckets != null ) { for ( int i = 0 ; i < this . buckets . length ; i ++ ) { ProxyBucketRegion pbr = this . buckets [ i ] ; if ( pbr . isPrimary ( ) ) { if ( primariesHeld == Collections . EMPTY_LIST ) { primariesHeld = new ArrayList ( ) ; } primariesHeld . add ( Integer . valueOf ( i ) ) ; } pbr . close ( ) ; } } return primariesHeld ; }
close the bucket advisors , releasing any locks for primary buckets
