public void build(XSComplexType ct) {
XSComplexType baseType = ct.getBaseType().asComplexType();
// build the base class
CClass baseClass = selector.bindToType(baseType, ct, true);
assert baseClass != null; // global complex type must map to a class
if (!checkIfExtensionSafe(baseType, ct)) {
// error. We can't handle any further extension
errorReceiver.error(ct.getLocator(),