# File lib/s3/grantee.rb, line 47
    def self.owner_and_grantees(thing)
      if thing.is_a?(S3::Bucket)
        bucket, key = thing, ''
      else
        bucket, key = thing.bucket, thing
      end
      hash     = bucket.s3.interface.get_acl_parse(bucket.to_s, key.to_s)
      owner    = S3::Owner.new(hash[:owner][:id], hash[:owner][:display_name])

      grantees = []
      hash[:grantees].each do |id, params|
        grantees << new(thing, id, params[:permissions], nil, params[:display_name])
      end
      [owner, grantees]
    end