METHOD_0 ( ) { try ( org . apache . nifi . remote . client . IDENT_0 client = METHOD_1 ( ) . METHOD_2 ( STRING_0 ) . build ( ) ) { final org . apache . nifi . remote . IDENT_1 transaction = client . METHOD_3 ( IDENT_2 . IDENT_3 ) ; "<AssertPlaceHolder>" ; org . apache . nifi . remote . protocol . IDENT_4 packet ; while ( ( packet = transaction . METHOD_4 ( ) ) != null ) { org . apache . nifi . remote . client . http . IDENT_5 . METHOD_5 ( packet ) ; java . lang . Thread . sleep ( INT_0 ) ; } transaction . METHOD_6 ( ) ; transaction . METHOD_7 ( ) ; } } METHOD_3 ( org . apache . nifi . remote . IDENT_2 ) { final int IDENT_6 = ( ( int ) ( config . METHOD_8 ( TimeUnit . IDENT_7 ) ) ) ; org . apache . nifi . remote . IDENT_8 IDENT_9 ; while ( ( IDENT_9 = IDENT_10 . METHOD_9 ( IDENT_11 ) ) != null ) { org . apache . nifi . remote . client . http . IDENT_12 . logger . debug ( STRING_1 , IDENT_9 ) ; final org . apache . nifi . remote . protocol . IDENT_13 IDENT_14 = new org . apache . nifi . remote . io . http . METHOD_10 ( ) ; final java . lang . String IDENT_15 = METHOD_11 ( IDENT_9 . METHOD_12 ( ) ) ; final java . lang . StringBuilder IDENT_16 = new java . lang . StringBuilder ( ) ; config . METHOD_13 ( ) . METHOD_14 ( ( url ) -> { if ( ( IDENT_16 . length ( ) ) > 0 ) { IDENT_16 . append ( STRING_2 ) ; IDENT_16 . append ( url ) ; } } ) ; final org . apache . nifi . remote . IDENT_17 IDENT_18 = new org . apache . nifi . remote . METHOD_15 ( IDENT_9 . METHOD_12 ( ) , IDENT_14 , IDENT_15 , IDENT_16 . toString ( ) ) ; final int IDENT_19 = ( ( int ) ( config . METHOD_16 ( TimeUnit . IDENT_7 ) ) ) ; java . lang . String IDENT_20 = config . METHOD_17 ( ) ; if ( org . apache . commons . lang3 . StringUtils . isEmpty ( IDENT_20 ) ) { IDENT_20 = IDENT_21 . METHOD_17 ( config . METHOD_18 ( ) , IDENT_11 ) ; if ( org . apache . commons . lang3 . StringUtils . isEmpty ( IDENT_20 ) ) { IDENT_18 . close ( ) ; throw new java . io . IOException ( ( STRING_3 + ( config . METHOD_18 ( ) ) ) ) ; } } final org . apache . nifi . remote . util . IDENT_22 IDENT_23 = new org . apache . nifi . remote . util . METHOD_19 ( config . METHOD_20 ( ) , config . METHOD_21 ( ) , config . METHOD_22 ( ) ) ; IDENT_23 . METHOD_23 ( IDENT_18 . METHOD_24 ( ) ) ; IDENT_23 . METHOD_25 ( IDENT_6 ) ; IDENT_23 . METHOD_26 ( IDENT_6 ) ; IDENT_23 . METHOD_27 ( config . METHOD_28 ( TimeUnit . IDENT_7 ) ) ; IDENT_23 . METHOD_29 ( config . METHOD_30 ( ) ) ; IDENT_23 . METHOD_31 ( config . METHOD_32 ( ) ) ; IDENT_23 . METHOD_33 ( config . METHOD_34 ( TimeUnit . IDENT_7 ) ) ; IDENT_23 . METHOD_35 ( config . METHOD_36 ( ) ) ; IDENT_23 . METHOD_37 ( config . METHOD_38 ( ) ) ; IDENT_23 . METHOD_39 ( config . METHOD_40 ( TimeUnit . IDENT_7 ) ) ; final java . lang . String IDENT_24 ; try { IDENT_24 = IDENT_23 . METHOD_41 ( IDENT_11 , IDENT_20 ) ; IDENT_14 . METHOD_42 ( IDENT_23 . METHOD_43 ( ) ) ; } catch ( final java . lang . Exception e ) { IDENT_23 . close ( ) ; org . apache . nifi . remote . client . http . IDENT_12 . logger . warn ( STRING_4 , IDENT_18 , e . toString ( ) ) ; IDENT_10 . METHOD_44 ( IDENT_18 , IDENT_19 ) ; if ( ( ( e instanceof org . apache . nifi . remote . exception . IDENT_25 ) || ( e instanceof org . apache . nifi . remote . exception . IDENT_26 ) ) || ( e instanceof org . apache . nifi . remote . exception . IDENT_27 ) ) { throw e ; } org . apache . nifi . remote . client . http . IDENT_12 . logger . debug ( STRING_5 ) ; continue ; } final java . lang . Integer IDENT_28 = IDENT_23 . METHOD_45 ( ) ; final org . apache . nifi . remote . protocol . http . IDENT_29 transaction = new org . apache . nifi . remote . protocol . http . METHOD_46 ( IDENT_28 , IDENT_18 , IDENT_11 , config . METHOD_32 ( ) , IDENT_20 , IDENT_19 , config . METHOD_22 ( ) ) { @ org . apache . nifi . remote . client . http . Override MOD_0 void close ( ) throws java . io . IOException { try { super . close ( ) ; } finally { IDENT_30 . remove ( this ) ; } } } ; try { transaction . METHOD_47 ( IDENT_23 , IDENT_24 ) ; } catch ( final java . lang . Exception e ) { transaction . error ( ) ; throw e ; } IDENT_30 . add ( transaction ) ; return transaction ; } org . apache . nifi . remote . client . http . IDENT_12 . logger . info ( STRING_6 ) ; return null ; }
org . junit . Assert . assertNotNull ( transaction )