#NEWLINE# @ staticmethod #NEWLINE# def construct( state ) : #NEWLINE# #INDENT# server = Server ( state . pop ( 'server' ) ) #NEWLINE# ap = None #NEWLINE# try : #NEWLINE# #INDENT# ap = AppProcess ( server , state [ 'pid' ] ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( ap . localInstall and ( ap . inode != state [ 'inode' ] ) ) : #NEWLINE# #INDENT# AppProcess . delete ( ap ) #NEWLINE# return None #NEWLINE# #UNINDENT# ap . _created = state . pop ( 'created' ) #NEWLINE# if IKittRemoteProcess . providedBy ( ap . process . process ) : #NEWLINE# #INDENT# ap . updateProcess ( state ) #NEWLINE# #UNINDENT# return ap