code: public Object[] toArray(List<QueryParameters> paramsList) {
          Object[] result = new Object[0];
          QueryParameters singleParam = null;
          String parameterName = null;
  
          Iterator<QueryParameters> iterator = paramsList.iterator();
  
          // skipping header
          if (iterator.hasNext() == true) {
              iterator.next();
          }
  
          if (iterator.hasNext() == true) {
  
              singleParam = iterator.next();
  
              result = new Object[singleParam.size()];
  
              for (int i = 0; i < singleParam.size(); i++) {
                  parameterName = singleParam.getNameByPosition(i);
  
                  result[i] = singleParam.getValue(parameterName);
              }
          }
  
          return result;
      }
docs: {@inheritDoc}