public String addAddressToTarget ( String address ) { if ( address != null ) { MessageDetailTarget messageDetailTarget = ( MessageDetailTarget ) this . getMainRecord ( ) ; String site = messageDetailTarget . getProperty ( TrxMessageHeader . DESTINATION_PARAM ) ; site = this . getSiteFromAddress ( address , site ) ; if ( ! messageDetailTarget . setProperty ( TrxMessageHeader . DESTINATION_PARAM , site ) ) address = null ; // This type doesn't take properties (never) messageDetailTarget . setProperty ( TrxMessageHeader . DESTINATION_MESSAGE_PARAM , this . getPathFromAddress ( address , site ) ) ; String wsdlPath = messageDetailTarget . getProperty ( TrxMessageHeader . WSDL_PATH ) ; wsdlPath = this . getPathFromAddress ( wsdlPath , site ) ; if ( wsdlPath != null ) messageDetailTarget . setProperty ( TrxMessageHeader . WSDL_PATH , wsdlPath ) ; } return address ; }
AddAddressToTarget Method .