perform early-stage routing , pick gateways that meet minimal requirements to send message for example are set to handle outbound messages . concode_field_sep ArrayList<AGateway> candidates concode_elem_sep ArrayList<AGateway> allowed concode_field_sep Collection<AGateway> route concode_elem_sep void beginRouting concode_elem_sep ArrayList<AGateway> getCandidates concode_elem_sep ArrayList<AGateway> getAllowed concode_elem_sep void customRouting concode_elem_sep void finishRouting
void function ( OutboundMessage arg0 , Collection < AGateway > arg1 ) { for ( AGateway loc0 : arg1 ) if ( ( loc0 . isOutbound ( ) ) && ( loc0 . getStatus ( ) == GatewayStatuses . STARTED ) ) { if ( arg0 . getGatewayId ( ) . equalsIgnoreCase ( "srini_string" ) ) getCandidates ( ) . add ( loc0 ) ; else if ( arg0 . getGatewayId ( ) . equalsIgnoreCase ( loc0 . getGatewayId ( ) ) ) getCandidates ( ) . add ( loc0 ) ; } }