#NEWLINE# def __init__( self , processor , inputProtocolFactory , outputProtocolFactory = None ) : #NEWLINE# #INDENT# resource . Resource . __init__ ( self ) #NEWLINE# self . inputProtocolFactory = inputProtocolFactory #NEWLINE# if ( outputProtocolFactory is None ) : #NEWLINE# #INDENT# self . outputProtocolFactory = inputProtocolFactory #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . outputProtocolFactory = processor #NEWLINE# #UNINDENT# self . processor = processor