class QueryVarParamWriter extends AbstractUrlParamWriter {

  private void writeArray(URLPathStringBuilder builder, Object value) throws Exception {
    if (shouldJoinParams()) {
      writeJoinedParams(builder, Arrays.asList(((Object[]) value)));
      return;
    }

    for (Object item : (Object[]) value) {
      writeItem(builder, item);
    }
  }

  public  QueryVarParamWriter(RestParam param);

}