METHOD_0 ( ) { org . apache . shindig . common . uri . IDENT_0 uri = new org . apache . shindig . common . uri . METHOD_1 ( ) . METHOD_2 ( IDENT_1 . URL . getKey ( ) , STRING_0 ) . METHOD_3 ( ) ; org . apache . shindig . IDENT_2 . uri . IDENT_3 . IDENT_4 manager = METHOD_4 ( false , false ) ; org . apache . shindig . IDENT_2 . uri . IDENT_5 status = manager . METHOD_5 ( uri ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( org . apache . shindig . common . uri . IDENT_0 ) { org . apache . shindig . common . uri . METHOD_1 uri = new org . apache . shindig . common . uri . METHOD_1 ( IDENT_6 ) ; java . lang . String IDENT_7 = uri . METHOD_6 ( IDENT_1 . URL . getKey ( ) ) ; org . apache . shindig . common . uri . IDENT_0 IDENT_8 = null ; try { IDENT_8 = org . apache . shindig . common . uri . IDENT_0 . parse ( IDENT_7 ) ; } catch ( java . lang . Exception e ) { return IDENT_5 . IDENT_9 ; } java . lang . String container = uri . METHOD_6 ( IDENT_1 . IDENT_10 . getKey ( ) ) ; if ( container == null ) { container = org . apache . shindig . config . IDENT_11 . IDENT_12 ; } java . lang . String host = uri . METHOD_7 ( ) . toLowerCase ( ) ; java . lang . String IDENT_13 = IDENT_14 . METHOD_8 ( IDENT_8 ) . toLowerCase ( ) ; if ( ( IDENT_15 ) && ( ! ( METHOD_9 ( ) ) ) ) { if ( host . startsWith ( IDENT_13 ) ) { host = host . substring ( IDENT_13 . length ( ) ) ; java . lang . String IDENT_16 = METHOD_10 ( container , org . apache . shindig . IDENT_2 . uri . IDENT_17 . IDENT_18 ) ; if ( ! ( IDENT_16 . equalsIgnoreCase ( host ) ) ) { return IDENT_5 . IDENT_19 ; } } else { for ( java . lang . String IDENT_16 : IDENT_20 ) { if ( host . METHOD_11 ( IDENT_16 ) ) { return IDENT_5 . IDENT_19 ; } } } } java . lang . String version = uri . METHOD_6 ( IDENT_1 . IDENT_21 . getKey ( ) ) ; if ( ( ( IDENT_22 ) == null ) || ( version == null ) ) { return IDENT_5 . IDENT_23 ; } return IDENT_22 . validate ( IDENT_8 , container , version ) ; }
org . junit . Assert . assertEquals ( IDENT_5 . IDENT_9 , status )