code: public PutObjectRequest newPutObjectRequest(String key,
        ObjectMetadata metadata, File srcfile) {
      PutObjectRequest putObjectRequest = new PutObjectRequest(mBucket, key,
          srcfile);
      putObjectRequest.setMetadata(metadata);
      return putObjectRequest;
    }
docs: Create a putObject request.
  Adds the ACL and metadata
  @param key key of object
  @param metadata metadata header
  @param srcfile source file
  @return the request