METHOD_0 ( ) { org . openmrs . api . context . Context . METHOD_1 ( new java . util . Locale ( STRING_0 , STRING_1 ) ) ; org . openmrs . IDENT_0 IDENT_1 = IDENT_2 ; org . openmrs . IDENT_3 IDENT_4 = new org . openmrs . METHOD_2 ( STRING_2 , org . openmrs . api . context . Context . METHOD_3 ( ) ) ; IDENT_1 . METHOD_4 ( IDENT_4 ) ; IDENT_5 . METHOD_5 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; org . openmrs . IDENT_0 IDENT_6 = IDENT_7 ; IDENT_6 . METHOD_6 ( org . openmrs . api . context . Context . METHOD_3 ( ) ) . setName ( STRING_2 ) ; org . springframework . validation . IDENT_8 errors = new org . springframework . validation . METHOD_7 ( IDENT_6 , STRING_3 ) ; IDENT_9 . expect ( org . openmrs . api . IDENT_10 . class ) ; IDENT_9 . METHOD_8 ( ( ( ( ( STRING_4 + IDENT_4 ) + STRING_5 ) + ( org . openmrs . api . context . Context . METHOD_3 ( ) ) ) + STRING_4 ) ) ; validator . validate ( IDENT_6 , errors ) ; } METHOD_9 ( java . util . Locale ) { if ( org . openmrs . IDENT_0 . log . METHOD_10 ( ) ) { org . openmrs . IDENT_0 . log . debug ( ( STRING_6 + IDENT_11 ) ) ; } if ( METHOD_11 ( IDENT_11 ) . isEmpty ( ) ) { if ( org . openmrs . IDENT_0 . log . METHOD_10 ( ) ) { org . openmrs . IDENT_0 . log . debug ( ( ( ( STRING_7 + ( IDENT_12 ) ) + STRING_8 ) + IDENT_11 ) ) ; } return null ; } else if ( IDENT_11 == null ) { org . openmrs . IDENT_0 . log . warn ( STRING_9 ) ; return null ; } for ( org . openmrs . METHOD_2 IDENT_13 : METHOD_11 ( IDENT_11 ) ) { if ( org . springframework . util . IDENT_14 . METHOD_12 ( IDENT_13 . METHOD_13 ( ) , true ) ) { return IDENT_13 ; } } org . openmrs . METHOD_2 IDENT_15 = null ; for ( org . openmrs . METHOD_2 IDENT_13 : METHOD_14 ( IDENT_11 ) ) { if ( org . springframework . util . IDENT_14 . METHOD_12 ( IDENT_13 . METHOD_13 ( ) , true ) ) { java . util . Locale IDENT_16 = IDENT_13 . METHOD_3 ( ) ; if ( IDENT_11 . METHOD_15 ( ) . equals ( IDENT_16 . METHOD_15 ( ) ) ) { return IDENT_13 ; } else { IDENT_15 = IDENT_13 ; } } } if ( IDENT_15 != null ) { return IDENT_15 ; } return METHOD_6 ( IDENT_11 ) ; }
org . junit . Assert . assertEquals ( STRING_2 , IDENT_1 . METHOD_9 ( org . openmrs . api . context . Context . METHOD_3 ( ) ) . getName ( ) )