return activityElement;
}
protected Element reply2XML(Activity activity) {
Reply reply = (Reply)activity;
Element activityElement = createBPELElement("reply");
if (reply.getPartnerLink() != null )
activityElement.setAttribute("partnerLink", reply.getPartnerLink().getName());
if (reply.getPortType() != null )
activityElement.setAttribute("portType", bpelNamespacePrefixManager.qNameToString(reply, reply.getPortType().getQName()));
if (reply.getOperation() != null )
activityElement.setAttribute("operation", getOperationSignature(reply.getOperation()));
if (reply.getVariable() != null )
activityElement.setAttribute("variable", reply.getVariable().getName());
if (reply.getFaultName() != null) {
activityElement.setAttribute("faultName", bpelNamespacePrefixManager.qNameToString(reply, reply.getFaultName()));
}
if (reply.getCorrelations() != null)
activityElement.appendChild(correlations2XML(reply.getCorrelations()));
Iterator it = reply.getToPart().iterator();
while (it.hasNext()) {
ToPart toPart = (ToPart)it.next();
activityElement.appendChild(toPart2XML(toPart));
}