write demo for apache cxf