METHOD_0 ( ) { java . lang . String IDENT_0 = org . apache . camel . util . IDENT_1 . METHOD_1 ( STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { java . net . URI IDENT_2 = new java . net . URI ( org . apache . camel . util . IDENT_3 . encode ( uri , true ) ) ; java . lang . String path = IDENT_2 . METHOD_2 ( ) ; java . lang . String IDENT_4 = IDENT_2 . METHOD_3 ( ) ; if ( ( IDENT_4 == null ) || ( path == null ) ) { return uri ; } if ( path . startsWith ( STRING_1 ) ) { path = path . substring ( 2 ) ; } int IDENT_5 = path . indexOf ( STRING_2 ) ; if ( IDENT_5 != ( - 1 ) ) { path = path . substring ( 0 , IDENT_5 ) ; } if ( IDENT_2 . METHOD_3 ( ) . startsWith ( STRING_3 ) ) { path = org . apache . camel . util . IDENT_3 . METHOD_4 ( path ) ; } else { path = org . apache . camel . util . IDENT_3 . encode ( path ) ; } java . lang . String IDENT_6 = path ; if ( IDENT_6 . contains ( "/" ) ) { IDENT_6 = IDENT_6 . substring ( 0 , IDENT_6 . indexOf ( "/" ) ) ; } if ( ( org . apache . camel . util . IDENT_7 . METHOD_5 ( IDENT_6 , STRING_4 ) ) > 1 ) { int max = IDENT_6 . METHOD_6 ( STRING_4 ) ; java . lang . String IDENT_8 = IDENT_6 . substring ( 0 , max ) ; java . lang . String IDENT_9 = path . substring ( max ) ; IDENT_8 = org . apache . camel . util . IDENT_7 . replaceAll ( IDENT_8 , STRING_5 , STRING_6 ) ; path = IDENT_8 + IDENT_9 ; } java . util . Map < java . lang . String , java . lang . Object > parameters = org . apache . camel . util . IDENT_1 . METHOD_7 ( IDENT_2 ) ; if ( parameters . isEmpty ( ) ) { return org . apache . camel . util . IDENT_1 . METHOD_8 ( IDENT_4 , path , null ) ; } else { java . util . List < java . lang . String > keys = new java . util . ArrayList ( parameters . METHOD_9 ( ) ) ; keys . METHOD_10 ( null ) ; java . util . Map < java . lang . String , java . lang . Object > IDENT_10 = new java . util . METHOD_11 ( parameters . size ( ) ) ; for ( java . lang . String key : keys ) { IDENT_10 . put ( key , parameters . get ( key ) ) ; } java . lang . String query = org . apache . camel . util . IDENT_1 . METHOD_12 ( IDENT_10 ) ; return org . apache . camel . util . IDENT_1 . METHOD_8 ( IDENT_4 , path , query ) ; } }
org . junit . Assert . assertEquals ( STRING_0 , IDENT_0 )