code: def getElementDeclaration(self, attribute=None):
          
          if attribute:
              return XMLSchemaComponent.getElementDeclaration(self, attribute)
          return XMLSchemaComponent.getElementDeclaration(self, 'ref')
docs: If attribute is None, "ref" is assumed, return the corresponding
          representation of the global element declaration (ElementDeclaration),
          To maintain backwards compat, if attribute is provided call base class method.