def __getattr__(self, key):
result = None<EOL>if key in self.__slots__:<EOL><INDENT>result = super(CompositeModelElement, self).__getattribute__(key)<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>result = self[key]<EOL><DEDENT>except KeyError:<EOL><INDENT>raise AttributeError(<EOL>'<STR_LIT>'.format(<EOL>self.__class__, key<EOL>)<EOL>)<EOL><DEDENT><DEDENT>return result<EOL>
Try to delegate key attribute to content name.