@SuppressWarnings("unchecked") public Document getDocument(final EndpointReferenceType eprDef) throws WSAddressingException { Document res = null; res = this.writer.getDocument(((DecoratorEndpointReferenceTypeImpl) eprDef).getFirstEpr()); return res; }
listOfObj.remove(previousExistingObj); final Element eprAsElt = WSAddressingFactory.getInstance().newWSAddressingWriter().getDocument(epr).getDocumentElement(); listOfObj.add(eprAsElt);