question: private SnmpPduPacket executeSubRequest ( SnmpPduPacket req , Object userData ) { int errorStatus = SnmpDefinitions . snmpRspNoError ; int i ; if ( req . type == pduSetRequestPdu ) { i = 0 ; for ( Enumeration < SnmpSubRequestHandler > e = subs . elements ( ) ; e . hasMoreElements ( ) ; i ++ ) { SnmpSubRequestHandler sub = e . nextElement ( ) ; sub . setUserData ( userData ) ; sub . type = pduWalkRequest ; sub . run ( ) ; sub . type = pduSetRequestPdu ; if ( sub . getErrorStatus ( ) != SnmpDefinitions . snmpRspNoError ) { if ( SNMP_ADAPTOR_LOGGER . isLoggable ( Level . FINEST ) ) { SNMP_ADAPTOR_LOGGER . logp ( Level . FINEST , dbgTag , "executeSubRequest" , "an error occurs" ) ; } return newErrorResponsePdu ( req , errorStatus , sub . getErrorIndex ( ) + 1 ) ; } } } i = 0 ; for ( Enumeration < SnmpSubRequestHandler > e = subs . elements ( ) ; e . hasMoreElements ( ) ; i ++ ) { SnmpSubRequestHandler sub = e . nextElement ( ) ; sub . setUserData ( userData ) ; sub . run ( ) ; if ( sub . getErrorStatus ( ) != SnmpDefinitions . snmpRspNoError ) { if ( SNMP_ADAPTOR_LOGGER . isLoggable ( Level . FINEST ) ) { SNMP_ADAPTOR_LOGGER . logp ( Level . FINEST , dbgTag , "executeSubRequest" , "an error occurs" ) ; } return newErrorResponsePdu ( req , errorStatus , sub . getErrorIndex ( ) + 1 ) ; } } return null ; }
target:  The method runs all the sub-requests associated to the current instance of SnmpRequestHandler.