@Override
    public XSElementDecl getGlobalElementDecl(QName name) {
      SchemaGrammar grammar = myBucket.getGrammar(name.uri);
      return grammar == null ? null : grammar.getGlobalElementDecl(name.localpart, name.prefix);
    }
@Override
    public XSElementDecl getGlobalElementDecl(QName name)