code: private void setCorrectSize(StoredObject tmp, Container cObj) {
      long objectSize = tmp.getContentLength();
      if (objectSize == 0) {
        // we may hit a well known Swift bug.
        // container listing reports 0 for large objects.
        StoredObject soDirect = cObj
            .getObject(tmp.getName());
        long contentLength = soDirect.getContentLength();
        if (contentLength > 0) {
          tmp.setContentLength(contentLength);
        }
      }
    }
docs: Swift has a bug where container listing might wrongly report size 0
  for large objects. It's seems to be a well known issue in Swift without
  solution.
  We have to provide work around for this.
  If container listing reports size 0 for some object, we send
  additional HEAD on that object to verify it's size.
  
  @param tmp JOSS StoredObject
  @param cObj JOSS Container object