#NEWLINE# def get_entity_by_key( self , key ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# identifier = self . reverse_cache [ key ] [ 0 ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return self . get_entity ( identifier )