if (msg != null) {
variableElement.setAttribute("messageType", bpelNamespacePrefixManager.qNameToString(variable, msg.getQName()));
}
if (variable.getType() != null) {
XSDTypeDefinition type = variable.getType();
QName qname = new QName(type.getTargetNamespace(), type.getName());
variableElement.setAttribute("type", bpelNamespacePrefixManager.qNameToString(variable, qname));
}
if (variable.getXSDElement() != null) {
XSDElementDeclaration element = variable.getXSDElement();