typeCopy.setAnonymousTypeQName(type.getAnonymousTypeQName());
typeCopy.setJavaType(type.getJavaType());
typeCopy.setRootTypeQName(name);
for (VariableMapping variable : type.getVariableMappings())
{
VariableMapping variableCopy = new VariableMapping(typeCopy);
variableCopy.setDataMember(variable.isDataMember());
variableCopy.setJavaVariableName(variable.getJavaVariableName());
variableCopy.setXmlAttributeName(variable.getXmlAttributeName());
variableCopy.setXmlElementName(variable.getXmlElementName());
variableCopy.setXmlWildcard(variable.getXmlWildcard());
typeCopy.addVariableMapping(variableCopy);
}
javaWsdlMapping.addJavaXmlTypeMappings(typeCopy);