JSONObject attributesJson = new JSONObject();
try
{
attributesJson.put(AjaxAttributeName.URL.jsonName(), getCallbackUrl());
Method method = attributes.getMethod();
if (Method.POST == method)
{
attributesJson.put(AjaxAttributeName.METHOD.jsonName(), method);
}