if (eb.getScope() == XSConstants.SCOPE_GLOBAL) { XSElementDecl[] ebs = sgh.getSubstitutionGroup(eb, Constants.SCHEMA_VERSION_1_1); for (int i = 0; i < ebs.length; i++) {
if (ed.getScope() == XSConstants.SCOPE_GLOBAL) { XSElementDecl[] eds = sgh.getSubstitutionGroup(ed, Constants.SCHEMA_VERSION_1_1); for (int j = 0; j < eds.length; j++) {
if (eb.getScope() == XSConstants.SCOPE_GLOBAL) { XSElementDecl[] ebs = sgh.getSubstitutionGroup(eb, Constants.SCHEMA_VERSION_1_1); for (int j = 0; j < ebs.length; j++) {
if (eb.getScope() == XSConstants.SCOPE_GLOBAL) { XSElementDecl[] ebs = sgh.getSubstitutionGroup(eb, Constants.SCHEMA_VERSION_1_1); for (int j = 0; j < ebs.length; j++) {
if (ed.getScope() == XSConstants.SCOPE_GLOBAL) { XSElementDecl[] eds = sgh.getSubstitutionGroup(ed, Constants.SCHEMA_VERSION_1_1); for (int i = 0; i < eds.length; i++) {
if (((XSElementDecl) component).getScope() == XSElementDecl.SCOPE_GLOBAL) { sg.addGlobalElementDeclAll((XSElementDecl) component);