code: public S3Object getObject(String bucketName, String objectKey) {
          try {
              return s3Client.getObject(bucketName, objectKey);
          } catch (AmazonServiceException e) {
              logger.error("Failed to get object " + objectKey + " from s3 bucket " + bucketName);
              throw e;
          }
      }
docs: Download an S3 object.
  
  @param bucketName The S3 bucket name from which to download the object.
  @param objectKey The S3 key name of the object to download.
  @return The downloaded
  <a href="http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/model/S3Object.html">S3Object</a>.