METHOD_0 ( ) { org . eclipse . IDENT_0 . repository . config . IDENT_1 IDENT_2 = new org . eclipse . IDENT_0 . repository . config . METHOD_1 ( STRING_0 ) ; java . util . Map < java . lang . String , java . lang . String > map = new java . util . METHOD_2 ( ) ; map . put ( "value" , STRING_1 ) ; "<AssertPlaceHolder>" ; } render ( java . util . Map ) { java . lang . StringBuffer result = new java . lang . StringBuffer ( template . length ( ) ) ; java . util . regex . IDENT_3 matcher = org . eclipse . IDENT_0 . repository . config . METHOD_1 . IDENT_4 . matcher ( template ) ; while ( matcher . find ( ) ) { java . lang . String group = matcher . group ( ) ; java . lang . String [ ] IDENT_5 = group . substring ( 2 , ( ( group . length ( ) ) - 2 ) ) . split ( STRING_2 ) ; java . lang . String IDENT_6 = IDENT_5 [ 0 ] . trim ( ) ; java . lang . String value = IDENT_7 . get ( IDENT_6 ) ; if ( value == null ) { java . util . List < java . lang . String > values = IDENT_8 . get ( IDENT_6 ) ; value = ( values . isEmpty ( ) ) ? "" : values . get ( 0 ) ; } if ( ( ! ( value . isEmpty ( ) ) ) && ( IDENT_9 . containsKey ( IDENT_6 ) ) ) { value = org . eclipse . IDENT_0 . repository . config . METHOD_1 . METHOD_3 ( IDENT_9 . get ( IDENT_6 ) , value ) ; } matcher . METHOD_4 ( result , java . util . regex . IDENT_3 . METHOD_5 ( value ) ) ; } matcher . METHOD_6 ( result ) ; return result . toString ( ) ; }
org . junit . Assert . assertEquals ( STRING_1 , IDENT_2 . render ( map ) )