METHOD_0 ( ) { props . setProperty ( STRING_0 , STRING_1 ) ; final org . apache . IDENT_0 . IDENT_1 . IDENT_2 res = IDENT_1 . METHOD_1 ( STRING_2 , context ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , org . apache . IDENT_0 . IDENT_1 . IDENT_3 ) { org . apache . IDENT_0 . mongodb . IDENT_4 . LOGGER . debug ( STRING_3 , script ) ; if ( org . apache . commons . lang . StringUtils . isEmpty ( script ) ) { return new org . apache . IDENT_0 . IDENT_1 . METHOD_2 ( org . apache . IDENT_0 . IDENT_1 . METHOD_2 . IDENT_5 . IDENT_6 ) ; } final java . io . File IDENT_7 = new java . io . File ( METHOD_3 ( context . METHOD_4 ( ) ) ) ; try { org . apache . commons . io . IDENT_8 . write ( IDENT_7 , ( ( org . apache . IDENT_0 . mongodb . IDENT_4 . IDENT_9 . replace ( STRING_4 5 , getProperty ( STRING_5 ) ) ) + script ) ) ; } catch ( java . io . IOException e ) { org . apache . IDENT_0 . mongodb . IDENT_4 . LOGGER . error ( STRING_4 0 , e ) ; return new org . apache . IDENT_0 . IDENT_1 . METHOD_2 ( org . apache . IDENT_0 . IDENT_1 . METHOD_2 . IDENT_5 . IDENT_10 , e . getMessage ( ) ) ; } org . apache . IDENT_0 . IDENT_1 . METHOD_2 result = new org . apache . IDENT_0 . IDENT_1 . METHOD_2 ( org . apache . IDENT_0 . IDENT_1 . METHOD_2 . IDENT_5 . IDENT_6 ) ; final org . apache . commons . exec . IDENT_11 executor = new org . apache . commons . exec . METHOD_5 ( ) ; final java . io . ByteArrayOutputStream IDENT_12 = new java . io . ByteArrayOutputStream ( ) ; executor . METHOD_6 ( new org . apache . commons . exec . METHOD_7 ( context . out , IDENT_12 ) ) ; executor . METHOD_8 ( new org . apache . commons . exec . METHOD_9 ( IDENT_13 ) ) ; final org . apache . commons . exec . IDENT_14 IDENT_15 = org . apache . commons . exec . IDENT_14 . parse ( getProperty ( STRING_0 ) ) ; IDENT_15 . METHOD_10 ( STRING_4 2 , false ) ; if ( ! ( org . apache . commons . lang . StringUtils . isEmpty ( getProperty ( STRING_6 ) ) ) ) { IDENT_15 . METHOD_10 ( STRING_4 1 , false ) ; IDENT_15 . METHOD_10 ( getProperty ( STRING_6 ) , false ) ; IDENT_15 . METHOD_10 ( STRING_4 4 , false ) ; IDENT_15 . METHOD_10 ( getProperty ( STRING_7 ) , false ) ; if ( ! ( org . apache . commons . lang . StringUtils . isEmpty ( getProperty ( STRING_4 ) ) ) ) { IDENT_15 . METHOD_10 ( STRING_8 , false ) ; IDENT_15 . METHOD_10 ( getProperty ( STRING_4 ) , false ) ; } } IDENT_15 . METHOD_10 ( IDENT_16 , false ) ; IDENT_15 . METHOD_10 ( IDENT_7 . getAbsolutePath ( ) , false ) ; try { executor . execute ( IDENT_15 ) ; IDENT_17 . put ( context . METHOD_4 ( ) , executor ) ; } catch ( org . apache . commons . exec . IDENT_18 e ) { org . apache . IDENT_0 . mongodb . IDENT_4 . LOGGER . error ( STRING_9 , context . METHOD_4 ( ) , e ) ; final int IDENT_19 = e . METHOD_11 ( ) ; org . apache . IDENT_0 . IDENT_1 . METHOD_2 . IDENT_5 code = org . apache . IDENT_0 . IDENT_1 . METHOD_2 . IDENT_5 . IDENT_10 ; java . lang . String msg = IDENT_12 . toString ( ) ; if ( IDENT_19 == INT_0 ) { code = org . apache . IDENT_0 . IDENT_1 . METHOD_2 . IDENT_5 . IDENT_20 ; msg = msg + STRING_4 3 ; org . apache . IDENT_0 . mongodb . IDENT_4 . LOGGER . info ( STRING_10 , context . METHOD_4 ( ) , msg ) ; } msg += STRING_11 + IDENT_19 ; result = new org . apache . IDENT_0 . IDENT_1 . METHOD_2 ( code , msg ) ; } catch ( java . io . IOException e ) { org . apache . IDENT_0 . mongodb . IDENT_4 . LOGGER . error ( STRING_9 , context . METHOD_4 ( ) , e ) ; result = new org . apache . IDENT_0 . IDENT_1 . METHOD_2 ( org . apache . IDENT_0 . IDENT_1 . METHOD_2 . IDENT_5 . IDENT_10 , e . getMessage ( ) ) ; } finally { org . apache . commons . io . IDENT_8 . METHOD_12 ( IDENT_7 ) ; } return result ; }
org . junit . Assert . assertTrue ( ( ( res . code ( ) ) == ( org . apache . IDENT_0 . IDENT_1 . METHOD_2 . IDENT_5 . IDENT_10 ) ) )