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