#NEWLINE# def _bean_dict( self , name ) : #NEWLINE# #INDENT# info = Resource ( ( remote ( self ) . uri . string + 'db/manage/server/jmx/domain/org.neo4j' ) ) . get ( ) . content #NEWLINE# raw_config = [ b for b in info [ 'beans' ] if b [ 'name' ] . endswith ( ( 'name=%s' % name ) ) ] [ 0 ] #NEWLINE# d = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for attribute in raw_config [ 'attributes' ] : #NEWLINE# #INDENT# name = attribute [ 'name' ] #NEWLINE# value = attribute . get ( 'value' ) #NEWLINE# if ( value == 'true' ) : #NEWLINE# #INDENT# d [ name ] = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value == 'false' ) : #NEWLINE# #INDENT# d [ name ] = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# d [ name ] = int ( value ) #NEWLINE# #UNINDENT# except ( TypeError , ValueError ) : #NEWLINE# #INDENT# d [ attribute ] = value #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return d