List<KeyValueResult> list = service.doGetKeyValueResult(map); con.setOutValue(list.toArray(new KeyValueResult[0]));