public JSONObject createJSONObject(Map m, boolean useSuperClass) throws JSONException {
try {
org.apache.wink.json4j.JSONObject jObj = new org.apache.wink.json4j.JSONObject(m);
return new org.apache.wink.json4j.compat.impl.ApacheJSONObjectDelegate(jObj);
} catch (Exception ex) {
JSONException jex = new JSONException(ex.getMessage());
jex.initCause(ex);
throw jex;
}
}