#NEWLINE# @ private #NEWLINE# def get_target( fqn ) : #NEWLINE# #INDENT# fqn_parts = fqn . rsplit ( '.' , 1 ) #NEWLINE# if ( len ( fqn_parts ) == 0 ) : #NEWLINE# #INDENT# raise InjectionException ( ( 'Unrecognized full qualified name: ' + fqn ) ) #NEWLINE# #UNINDENT# target = None #NEWLINE# for name in fqn_parts : #NEWLINE# #INDENT# if ( target is None ) : #NEWLINE# #INDENT# target = __import__ ( name , None , None , [ '' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# target = getattr ( target , name ) #NEWLINE# if ( target is None ) : #NEWLINE# #INDENT# raise InjectionException ( ( "Attribute '%s' is not found in '%s'" % ( name , str ( target ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return target