}
else
{
method = new Method(resource, PUT.name());
}
method = method.header(HEADER_CONTENT_TYPE, CONTENT_TYPE_JSON).text(activityWriter.toJson(action.getActivity()));
return method;
}
@Override
protected void executeMethod(final Method method, final AsyncCallback<SaveActivityResult> resultCallback)