METHOD_0 ( ) { org . teiid . query . IDENT_0 . IDENT_1 IDENT_2 = new org . teiid . query . IDENT_0 . METHOD_1 ( ) ; javax . script . IDENT_3 cs = IDENT_2 . METHOD_2 ( STRING_0 ) ; javax . script . IDENT_4 IDENT_5 = new javax . script . METHOD_3 ( ) ; IDENT_5 . METHOD_4 ( STRING_1 , new java . lang . Object [ ] { new java . lang . Object [ ] { STRING_2 , STRING_3 } } , METHOD_3 . IDENT_6 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( javax . script . IDENT_7 ) { if ( IDENT_8 == null ) { throw new java . lang . METHOD_6 ( ) ; } java . lang . Object obj = null ; if ( ( IDENT_9 . length ) > 0 ) { obj = IDENT_8 . METHOD_7 ( IDENT_9 [ 0 ] ) ; } for ( int i = 1 ; i < ( IDENT_9 . length ) ; i ++ ) { if ( obj == null ) { return null ; } java . lang . String IDENT_10 = IDENT_9 [ i ] ; java . util . Map < java . lang . String , java . lang . reflect . Method > IDENT_11 = METHOD_8 ( obj . getClass ( ) ) ; java . lang . reflect . Method m = IDENT_11 . get ( IDENT_10 ) ; if ( m == null ) { int index = IDENT_12 [ i ] ; if ( index > 0 ) { if ( obj instanceof java . util . List ) { try { obj = ( ( java . util . List < ? > ) ( obj ) ) . get ( ( index - 1 ) ) ; } catch ( java . lang . IDENT_13 e ) { obj = null ; } continue ; } try { obj = org . teiid . query . function . IDENT_14 . METHOD_9 ( obj , index ) ; continue ; } catch ( org . teiid . api . exception . query . IDENT_15 e ) { throw new javax . script . METHOD_10 ( e ) ; } catch ( java . sql . IDENT_16 e ) { throw new javax . script . METHOD_10 ( e ) ; } } throw new javax . script . METHOD_10 ( IDENT_17 . IDENT_18 . gs ( IDENT_17 . IDENT_19 . IDENT_20 , IDENT_10 , obj . getClass ( ) ) ) ; } try { obj = m . invoke ( obj ) ; } catch ( java . lang . IDENT_21 e ) { throw new javax . script . METHOD_10 ( e ) ; } catch ( java . lang . reflect . IDENT_22 e ) { if ( ( e . METHOD_11 ( ) ) instanceof java . lang . Exception ) { throw new javax . script . METHOD_10 ( ( ( java . lang . Exception ) ( e . METHOD_11 ( ) ) ) ) ; } throw new javax . script . METHOD_10 ( e ) ; } } return obj ; }
org . junit . Assert . assertEquals ( STRING_3 , cs . METHOD_5 ( IDENT_5 ) )