code: private static Property[] toPropertyArray(Header[] headers) {
  
          Property[] props = new Property[headers.length];
          for (int i = 0; i < headers.length; i++) {
              props[i] = new Property();
              props[i].name = headers[i].getName();
              props[i].value = headers[i].getValue();
          }
          return props;
      }
docs: Convert the given HTTP <code>Headers</code> to an array of
  <code>Property</code> objects.