private Region findRegion ( ) { boolean regionProvided = ! Validator . isBlank ( this . region ) ; if ( ! regionProvided ) { // Determine region from where application is running, or fall back to default region Region currentRegion = Regions . getCurrentRegion ( ) ; if ( currentRegion != null ) { return currentRegion ; } return Region . getRegion ( Regions . fromName ( AppenderConstants . DEFAULT_REGION ) ) ; } return Region . getRegion ( Regions . fromName ( this . region ) ) ; }
Determine region . If not specified tries to determine region from where the application is running or fall back to the default .