#NEWLINE# def create_store( self , parameters ) : #NEWLINE# #INDENT# '\n    Instantiate a new PersistentStore instance using the provided\n    arguments.\n\n    Arguments:\n      parameters  Any additional parameters required to create the\n                  PersistentStore instance. This map must at least\n                  contain PARAM_STORE_TYPE.\n\n    Returns:\n      A PersistentStore instance\n\n    Raises:\n      NameError   If the type name provided is invalid\n    ' #NEWLINE# store_type = parameters [ self . PARAM_STORE_TYPE ] #NEWLINE# if ( store_type == 'file' ) : #NEWLINE# #INDENT# return FileSystemBasedPersistentStore ( parameters ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise NameError ( 'Unrecognized persistent store type' )