}
@SuppressWarnings("unchecked")
void setReplyParameters(Receive recv, Reply reply, Variable variable, XSDTypeDefinition type, XpathExpression xpath, BpelScope scope){
Operation operation = recv.getOperation();
reply.setPartnerLink(recv.getPartnerLink());
reply.setOperation(operation);
reply.setPortType(recv.getPortType());
reply.setVariable(variable);
From from = BPELFactory.eINSTANCE.createFrom();
from.setVariable(variable);
Query fromQuery = BPELFactory.eINSTANCE.createQuery();
fromQuery.setValue(xpath.evaluate());
fromQuery.setQueryLanguage(XPATH_NAMESPACE);
from.setQuery(fromQuery);
To to = BPELFactory.eINSTANCE.createTo();
to.setVariable(variable);
Query toQuery = BPELFactory.eINSTANCE.createQuery();
toQuery.setQueryLanguage(XPATH_NAMESPACE);
javax.jws.soap.SOAPBinding soapBinding = operationSoapBindingMap.get(operation);
Message message = null;
javax.wsdl.Fault f = operation.getFault(type.getName());
if (f != null){
message = (org.eclipse.wst.wsdl.Message)f.getMessage();
} else {
javax.wsdl.Output output = operation.getOutput();
if (output != null)
message = (org.eclipse.wst.wsdl.Message)output.getMessage();
}
if (message != null){
List<Part> msgParts = message.getOrderedParts(null);