#NEWLINE# @ classmethod #NEWLINE# def get_impl( cls , impl ) : #NEWLINE# #INDENT# impl_map = { #NEWLINE# #INDENT# cls . CSV : OrientSerializationCSV , #NEWLINE# cls . Binary : OrientSerializationBinary , #NEWLINE# #UNINDENT# } #NEWLINE# implementation = impl_map . get ( impl , False ) #NEWLINE# if ( not implementation ) : #NEWLINE# #INDENT# raise PyOrientBadMethodCallException ( ( impl + ' is not an availableserialization type' ) , [ ] ) #NEWLINE# #UNINDENT# return implementation ( )