code: public static File getRequestFile(final PutObjectRequest putObjectRequest) {
          if (putObjectRequest.getFile() != null) return putObjectRequest.getFile();
          return null;
      }
docs: Convenience method for getting the file specified in a request.