METHOD_0 ( ) { System . out . println ( ( ( ( com . IDENT_0 . iot . IDENT_1 . utils . IDENT_2 . METHOD_1 ( STRING_0 ) ) + STRING_1 ) + STRING_2 ) ) ; org . json . simple . JSONObject IDENT_3 = new org . json . simple . JSONObject ( ) ; IDENT_3 . put ( "name" , STRING_0 2 ) ; IDENT_3 . put ( STRING_3 , STRING_4 ) ; IDENT_3 . put ( "value" , STRING_5 ) ; org . json . simple . IDENT_4 IDENT_5 = new org . json . simple . METHOD_2 ( ) ; IDENT_5 . add ( IDENT_3 ) ; java . lang . String IDENT_6 = IDENT_5 . METHOD_3 ( ) ; java . lang . Long IDENT_7 = com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . METHOD_4 ( IDENT_6 ) ; try { "<AssertPlaceHolder>" ; System . out . println ( ( ( ( ( ( ( com . IDENT_0 . iot . IDENT_1 . utils . IDENT_2 . METHOD_1 ( STRING_0 ) ) + STRING_0 0 ) + ( IDENT_5 . METHOD_3 ( ) ) ) + STRING_6 ) + IDENT_7 ) + STRING_7 ) ) ; } catch ( java . lang . IDENT_9 e ) { System . out . println ( ( ( com . IDENT_0 . iot . IDENT_1 . utils . IDENT_2 . METHOD_1 ( STRING_0 ) ) + STRING_0 1 ) ) ; throw e ; } METHOD_4 ( java . lang . String ) { java . lang . Long res = null ; org . json . simple . parser . IDENT_10 parser = new org . json . simple . parser . METHOD_5 ( ) ; org . json . simple . METHOD_2 IDENT_11 ; try { IDENT_11 = ( ( org . json . simple . METHOD_2 ) ( parser . parse ( metadata ) ) ) ; } catch ( org . json . simple . parser . IDENT_12 e ) { com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . LOGGER . error ( ( STRING_8 + ( e . getMessage ( ) ) ) ) ; return null ; } for ( java . lang . Object IDENT_13 : IDENT_11 ) { org . json . simple . JSONObject IDENT_14 = ( ( org . json . simple . JSONObject ) ( IDENT_13 ) ) ; java . lang . String IDENT_15 = ( ( java . lang . String ) ( IDENT_14 . get ( "name" ) ) ) ; if ( IDENT_15 . equals ( STRING_9 ) ) { java . lang . String IDENT_16 = ( ( java . lang . String ) ( IDENT_14 . get ( "value" ) ) ) ; if ( com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . METHOD_6 ( IDENT_16 ) ) { res = new java . lang . Long ( IDENT_16 ) ; } else { org . joda . time . IDENT_17 IDENT_18 ; try { IDENT_18 = com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . IDENT_19 . METHOD_7 ( IDENT_16 ) ; } catch ( java . lang . Exception IDENT_20 ) { com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . LOGGER . debug ( IDENT_20 . getMessage ( ) ) ; try { IDENT_18 = com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . IDENT_21 . METHOD_7 ( IDENT_16 ) ; } catch ( java . lang . Exception IDENT_22 ) { com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . LOGGER . debug ( IDENT_22 . getMessage ( ) ) ; try { java . lang . String IDENT_23 = ( IDENT_16 . substring ( 0 , ( ( IDENT_16 . length ( ) ) - 4 ) ) ) + STRING_10 ; IDENT_18 = com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . IDENT_21 . METHOD_7 ( IDENT_23 ) ; } catch ( java . lang . Exception IDENT_24 ) { com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . LOGGER . debug ( IDENT_24 . getMessage ( ) ) ; try { IDENT_18 = com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . IDENT_25 . METHOD_7 ( IDENT_16 ) ; } catch ( java . lang . Exception IDENT_26 ) { com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . LOGGER . debug ( IDENT_26 . getMessage ( ) ) ; try { IDENT_18 = com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . IDENT_27 . METHOD_7 ( IDENT_16 ) ; } catch ( java . lang . Exception IDENT_28 ) { com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . LOGGER . debug ( IDENT_28 . getMessage ( ) ) ; try { java . lang . String IDENT_23 = IDENT_16 . substring ( 0 , ( ( IDENT_16 . length ( ) ) - 3 ) ) ; IDENT_18 = com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . IDENT_27 . METHOD_7 ( IDENT_23 ) ; } catch ( java . lang . Exception IDENT_29 ) { com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . LOGGER . debug ( IDENT_29 . getMessage ( ) ) ; try { IDENT_18 = com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . IDENT_30 . METHOD_7 ( IDENT_16 ) ; } catch ( java . lang . Exception IDENT_31 ) { com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . LOGGER . debug ( IDENT_31 . getMessage ( ) ) ; try { java . util . regex . IDENT_32 matcher = com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . IDENT_33 . matcher ( IDENT_16 ) ; if ( matcher . matches ( ) ) { java . lang . String IDENT_23 = ( ( ( matcher . group ( 1 ) ) + STRING_11 ) + ( matcher . group ( 2 ) . substring ( 0 , 3 ) ) ) + ( matcher . group ( 3 ) ) ; IDENT_18 = com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . IDENT_34 . METHOD_7 ( IDENT_23 ) ; } else { com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . LOGGER . debug ( STRING_12 ) ; return null ; } } catch ( java . lang . Exception IDENT_35 ) { com . IDENT_0 . iot . IDENT_1 . utils . IDENT_8 . LOGGER . debug ( IDENT_35 . getMessage ( ) ) ; return null ; } } } } } } } } java . util . IDENT_36 IDENT_37 = IDENT_18 . METHOD_8 ( ) ; res = IDENT_37 . METHOD_9 ( ) ; } break ; } } return res ; }
org . junit . Assert . assertTrue ( ( IDENT_7 != null ) )