JSON.getDefault().addConvertor(XcapPolicy.class, new Convertor()
{
public void toJSON(Object obj, Output out)
{
XcapPolicy policy = (XcapPolicy) obj;
out.add("Resource", policy.getResourceUri());
out.add("XcapResources", policy.getXcapResources());
}
public Object fromJSON(Map object) { return null; }
});
JSON.getDefault().addConvertor(ResourceHolder.class, new Convertor()