JSONArray jsonArray = jsonObject.getJSONArray("params");
for(int i=0; i<jsonArray.length(); i++) {
try {
String paramName = jsonArray.getJSONObject(i).getString("name");
String paramDefault = jsonArray.getJSONObject(i).getString("default");
Param param = request.addNewParam();
param.setName(paramName);
param.setDefault(paramDefault);
param.setStyle(ParamStyle.Enum.forString("query"));
param.setType("xs:string");
} catch (JSONException ex) {
Logger.getLogger(WADLGenerator.class.getName()).log(Level.SEVERE, null, ex);
}
}
} catch (JSONException ex) {