CorrelationSetInstance csetInstance = _scopeFrame.resolve(ocopy.to.getVariable().name);
CorrelationKey ckey = new CorrelationKey(csetInstance.declaration.getId(), new String[] { rvalue.getTextContent() });
if (__log.isDebugEnabled()) __log.debug("Writing correlation " + csetInstance.getName()
+ " using value " + rvalue.getTextContent());
getBpelRuntime().writeCorrelation(csetInstance, ckey);
se = new CorrelationSetWriteEvent(csetInstance.declaration.name, ckey);
} else {
// Sneakily converting the EPR if it's not the format expected by the lvalue
if (ocopy.from instanceof OAssign.PartnerLinkRef) {
rvalue = getBpelRuntime().convertEndpointReference((Element)rvalue, lvaluePtr);
if (rvalue.getNodeType() == Node.DOCUMENT_NODE)