#NEWLINE# def get_part_of_class_type( self , part_class ) : #NEWLINE# #INDENT# self . _ensure_parts_are_loaded ( ) #NEWLINE# parts = self . get_parts_of_type ( self . relationship_type ) #NEWLINE# if parts : #NEWLINE# #INDENT# return parts [ 0 ]