}
restrictedType.validate();
extendedType = null;
XSObjectFactory factory = pOwner.getXSSchema().getXSObjectFactory();
XSType contentType = factory.newXSType(pOwner, restriction);
simpleContentType = factory.newXSSimpleContentType(pOwner, contentType, restriction);
attributes = XSAttributeGroupImpl.getAttributes(XSTypeImpl.this, restriction);
} else {
XsQName extendedTypesName = extension.getBase();
if (extendedTypesName == null) {
throw new LocSAXException("Invalid 'extension': Missing 'base' attribute.",