METHOD_0 ( ) { IDENT_0 . IDENT_1 = false ; final org . exist . storage . IDENT_0 pool = METHOD_1 ( ) ; final org . exist . storage . IDENT_2 . IDENT_3 IDENT_4 = pool . METHOD_2 ( ) ; byte [ ] data = null ; try ( final org . exist . storage . IDENT_5 IDENT_6 = pool . get ( java . util . Optional . of ( pool . METHOD_3 ( ) . METHOD_4 ( ) ) ) ; final org . exist . storage . IDENT_2 . IDENT_7 transaction = IDENT_4 . METHOD_5 ( ) ) { final org . exist . IDENT_8 . IDENT_9 IDENT_10 = IDENT_11 . IDENT_12 . append ( org . exist . storage . IDENT_13 . IDENT_14 ) ; try ( final org . exist . dom . IDENT_15 . IDENT_16 IDENT_17 = IDENT_6 . METHOD_6 ( IDENT_10 , IDENT_18 . IDENT_19 ) ) { if ( IDENT_17 == null ) { org . junit . Assert . fail ( ( ( STRING_0 + IDENT_10 ) + STRING_1 ) ) ; } else { final org . exist . dom . IDENT_15 . IDENT_20 IDENT_21 = ( ( org . exist . dom . IDENT_15 . IDENT_20 ) ( IDENT_17 . METHOD_7 ( ) ) ) ; try ( final java . io . InputStream is = IDENT_6 . METHOD_8 ( transaction , IDENT_21 ) ) { data = new byte [ ( ( int ) ( IDENT_21 . METHOD_9 ( ) ) ) ] ; is . read ( data ) ; } } } try ( final org . exist . collections . Collection collection = IDENT_6 . METHOD_10 ( IDENT_11 . IDENT_12 , IDENT_18 . IDENT_22 ) ) { IDENT_6 . METHOD_0 ( transaction , collection ) ; } IDENT_4 . commit ( transaction ) ; } "<AssertPlaceHolder>" ; } commit ( org . exist . storage . IDENT_2 . IDENT_7 ) { java . util . IDENT_23 . METHOD_11 ( IDENT_2 ) ; if ( IDENT_2 instanceof org . exist . storage . IDENT_2 . IDENT_7 . IDENT_24 ) { IDENT_2 . commit ( ) ; return ; } if ( ( IDENT_2 . METHOD_12 ( ) ) != ( IDENT_7 . IDENT_25 . IDENT_26 ) ) { return ; } try { while ( true ) { final int IDENT_27 = state . get ( ) ; if ( IDENT_27 == ( org . exist . storage . IDENT_2 . IDENT_3 . IDENT_28 ) ) { org . exist . storage . IDENT_2 . IDENT_3 . METHOD_13 ( ) ; } if ( IDENT_27 == ( org . exist . storage . IDENT_2 . IDENT_3 . IDENT_29 ) ) { final long IDENT_30 = java . lang . Thread . METHOD_14 ( ) . getId ( ) ; if ( IDENT_31 . METHOD_15 ( IDENT_30 , IDENT_30 ) ) { METHOD_16 ( IDENT_2 ) ; return ; } else { java . lang . Thread . sleep ( 10 ) ; continue ; } } if ( ( IDENT_27 > ( org . exist . storage . IDENT_2 . IDENT_3 . IDENT_32 ) ) && ( state . METHOD_15 ( IDENT_27 , ( IDENT_27 - 1 ) ) ) ) { METHOD_16 ( IDENT_2 ) ; return ; } } } catch ( final java . lang . IDENT_33 e ) { java . lang . Thread . METHOD_14 ( ) . METHOD_17 ( ) ; throw new java . lang . RuntimeException ( e ) ; } }
org . junit . Assert . assertEquals ( 0 , data . length )