docs: public String getBucketLifeCycle(String bucketName)
            throws InvalidBucketNameException, NoSuchAlgorithmException,
            InsufficientDataException, IOException, InvalidKeyException, NoResponseException,
            XmlPullParserException, ErrorResponseException, InternalException {
      Map<String,String> queryParamMap = new HashMap<>();
      queryParamMap.put("lifecycle", "");
      HttpResponse response = null;
      String bodyContent = "";
      Scanner scanner = null ;
      try {
        response = executeGet(bucketName, "", null, queryParamMap);
        scanner = new Scanner(response.body().charStream());
        // read entire body stream to string.
        scanner.useDelimiter("\\A");
        if (scanner.hasNext()) {
          bodyContent = scanner.next();
        }
      } catch (ErrorResponseException e) {
        if (e.errorResponse().errorCode() != ErrorCode.NO_SUCH_LIFECYCLE_CONFIGURATION) {
          throw e;
        }
      } finally {
        if (response != null && response.body() != null) {
          response.body().close();
        }
        if (scanner != null) {
          scanner.close();
        }
      }
      return bodyContent;
    }