if (msgEl != null) {
try {
VariableInstance vinst = ehScopeFrame.resolve(_oevent.variable);
getBpelRuntimeContext().writeVariable(vinst, msgEl);
VariableModificationEvent se = new VariableModificationEvent(vinst.declaration.name);
se.setNewValue(msgEl);
_scopeFrame.fillEventInfo(se);
if (_oevent.debugInfo != null)
se.setLineNo(_oevent.debugInfo.startLine);
getBpelRuntimeContext().sendEvent(se);
} catch (Exception ex) {
__log.fatal(ex);
throw new InvalidProcessException(ex);
}