#NEWLINE# @ staticmethod #NEWLINE# def __findAliasForDuplicatedVmName( vm ) : #NEWLINE# #INDENT# newVmName = vm . name #NEWLINE# for i in range ( OXA_XEN_MAX_DUPLICATED_NAME_VMS ) : #NEWLINE# #INDENT# if ( not XendManager . isVmRunning ( ( ( vm . name + '_' ) + str ( i ) ) ) ) : #NEWLINE# #INDENT# return str ( ( ( vm . name + '_' ) + str ( vm ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# Exception ( 'Could not generate an alias for a duplicated vm name.' )