public void setAddress(String address) {
this.address = address;
}
public Object getObject() throws Exception {
CreatePullPoint createPullPoint = new CreatePullPoint();
if (address != null) {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
Document doc = factory.newDocumentBuilder().newDocument();
Element el = doc.createElementNS("http://servicemix.apache.org/wsn2005/1.0", "address");
Text txt = doc.createTextNode(address);
el.appendChild(txt);
doc.appendChild(el);
createPullPoint.getAny().add(el);
}
return createPullPoint;
}