#NEWLINE# def GetGenerator( self , identifier ) : #NEWLINE# #INDENT# 'Returns a specific generator instance based on the identifier.\n\n    Args:\n      identifier: String identifier for the generator to get.\n\n    Raises:\n      GeneratorIdentificationError: If the generator cannot be identified.\n\n    Returns:\n      Generator instance based on the identifier passed in.\n    ' #NEWLINE# if ( identifier not in self . _generators ) : #NEWLINE# #INDENT# raise GeneratorIdentificationError ( ( "Generator '%s' could not be identified." % identifier ) ) #NEWLINE# #UNINDENT# return self . _generators [ identifier ] ( )