if (common == null) {
return new XSClass(SGTypes.OBJECT);
}
XSType convertedType = convertType(common, packageName, useWrapper, useJava50, null);
Union unionType = (Union) simpleType;
Enumeration<SimpleType> memberTypes = unionType.getMemberTypes();
while (memberTypes.hasMoreElements()) {
SimpleType memberType = memberTypes.nextElement();
convertedType.setFacets(memberType);
}
return convertedType;