for (Iterator i = element.elementIterator("onMessage"); i.hasNext();) {
Element onMessageElt = (Element) i.next();
String partnerLink = onMessageElt.valueOf("@partnerLink");
String portType = onMessageElt.valueOf("@portType");
String operation = onMessageElt.valueOf("@operation");
String variable = onMessageElt.valueOf("@variable");
Element correlationsElt = onMessageElt.element("correlations");
Set correlationList = getCorrelationRefList(correlationsElt);
Element activityElement = getActivityElement(onMessageElt);
ActivityDeployer ad = ActivityDeployerFactory.getActivityDeployer(activityElement.getName());
Activity act = ad.deploy(activityElement, pick);