#NEWLINE# def isInSubstitutionGroup( self , elementQname , subsGrpQnames ) : #NEWLINE# #INDENT# 'Determine if element is in substitution group(s)\n        \n        Used by ModelObjectFactory to return Class type for new ModelObject subclass creation, and isInSubstitutionGroup\n        \n        :param elementQname: Element/Concept QName to determine if in substitution group(s)\n        :type elementQname: QName\n        :param subsGrpQnames: QName or list of QNames\n        :type subsGrpMatchTable: QName or [QName]\n        :returns: bool -- True if element is in any substitution group\n        ' #NEWLINE# return self . matchSubstitutionGroup ( elementQname , { qn : ( qn is not None ) for qn in ( ( subsGrpQnames if hasattr ( subsGrpQnames , '__iter__' ) else ( subsGrpQnames , ) ) + ( None , ) ) } )