public void registerMessageTypeVar(String name, QName type, java.util.List<String> partNames,
java.util.List<QName> partTypes) {
java.util.List<Part> parts=new java.util.Vector<Part>();
for (int i=0; i < partNames.size(); i++) {
parts.add(new Part(getOProcess(), partNames.get(i),
new OElementVarType(getOProcess(), partTypes.get(i))));
}
OMessageVarType varType = new OMessageVarType(getOProcess(),type,parts);
OScope.Variable var = new OScope.Variable(getOProcess(),varType);
var.name = name;
_vars.put(name, var);