private boolean isLocalizationAvailable ( BaseDestinationHandler baseDestinationHandler , DestinationAvailability destinationAvailability ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isLocalizationAvailable" , new Object [ ] { baseDestinationHandler , destinationAvailability } ) ; boolean available = false ; if ( baseDestinationHandler . hasLocal ( ) ) { // Look at the stream for the destination which represents all localizations LocalizationPoint localizationPoint = baseDestinationHandler . getQueuePoint ( messageProcessor . getMessagingEngineUuid ( ) ) ; if ( destinationAvailability == DestinationAvailability . SEND ) { available = localizationPoint . isSendAllowed ( ) ; } else { available = true ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "isLocalizationAvailable" , new Object [ ] { new Boolean ( available ) } ) ; return available ; }
This method determines whether a localization for a destination is available .