METHOD_0 ( ) { final java . util . HashMap < java . lang . String , java . lang . Object > parameters = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; parameters . put ( STRING_0 , STRING_1 ) ; parameters . put ( STRING_2 , STRING_3 ) ; final com . tinkerpop . IDENT_0 . IDENT_1 resource = METHOD_1 ( true , parameters ) . getResource ( ) ; resource . METHOD_2 ( IDENT_2 , STRING_4 ) ; final com . tinkerpop . IDENT_3 . IDENT_4 IDENT_5 = ( ( com . tinkerpop . IDENT_3 . IDENT_6 ) ( this . IDENT_7 ) ) . METHOD_3 ( STRING_4 , com . tinkerpop . IDENT_3 . IDENT_8 . class ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , java . lang . String ) { java . lang . String clazz = null ; java . util . Set < java . lang . String > keys = null ; com . tinkerpop . IDENT_3 . IDENT_9 [ ] IDENT_10 = new com . tinkerpop . IDENT_3 . IDENT_9 [ 0 ] ; final org . IDENT_11 . IDENT_12 . json . JSONObject IDENT_13 = this . METHOD_4 ( ) ; java . lang . Object IDENT_14 = IDENT_13 . METHOD_5 ( IDENT_15 . IDENT_16 ) ; if ( IDENT_14 != null ) clazz = IDENT_14 . toString ( ) ; IDENT_14 = IDENT_13 . METHOD_5 ( IDENT_15 . IDENT_17 ) ; if ( IDENT_14 != null ) { try { final org . IDENT_11 . IDENT_12 . json . IDENT_18 IDENT_19 ; if ( IDENT_14 instanceof java . lang . String ) { IDENT_19 = new org . IDENT_11 . IDENT_12 . json . METHOD_6 ( ) ; IDENT_19 . put ( IDENT_14 ) ; } else { IDENT_19 = ( ( org . IDENT_11 . IDENT_12 . json . METHOD_6 ) ( IDENT_14 ) ) ; } keys = new java . util . HashSet < java . lang . String > ( ) ; for ( int i = 0 ; i < ( IDENT_19 . length ( ) ) ; i ++ ) { keys . add ( IDENT_19 . getString ( i ) ) ; } } catch ( java . lang . Exception e ) { final org . IDENT_11 . IDENT_12 . json . JSONObject error = METHOD_7 ( ( STRING_5 + IDENT_14 ) ) ; throw new javax . ws . rs . METHOD_8 ( javax . ws . rs . core . Response . status ( Response . Status . IDENT_20 ) . entity ( error ) . build ( ) ) ; } } IDENT_14 = IDENT_13 . METHOD_5 ( STRING_6 ) ; if ( IDENT_14 != null ) { final org . IDENT_11 . IDENT_12 . json . JSONObject IDENT_21 = ( ( org . IDENT_11 . IDENT_12 . json . JSONObject ) ( IDENT_14 ) ) ; final java . util . ArrayList < com . tinkerpop . IDENT_3 . IDENT_9 < java . lang . Object , java . lang . Object > > IDENT_22 = new java . util . ArrayList < com . tinkerpop . IDENT_3 . IDENT_9 < java . lang . Object , java . lang . Object > > ( ) ; final java . util . Iterator IDENT_23 = IDENT_21 . keys ( ) ; while ( IDENT_23 . hasNext ( ) ) { final java . lang . String IDENT_24 = ( ( java . lang . String ) ( IDENT_23 . next ( ) ) ) ; IDENT_22 . add ( new com . tinkerpop . IDENT_3 . IDENT_9 < java . lang . Object , java . lang . Object > ( IDENT_24 , IDENT_21 . METHOD_9 ( IDENT_24 ) ) ) ; } IDENT_10 = new com . tinkerpop . IDENT_3 . IDENT_9 [ IDENT_22 . size ( ) ] ; IDENT_22 . toArray ( IDENT_10 ) ; } final com . tinkerpop . IDENT_3 . IDENT_4 index = this . METHOD_10 ( IDENT_2 , IDENT_25 ) ; final com . tinkerpop . IDENT_0 . IDENT_26 IDENT_27 = this . METHOD_11 ( IDENT_2 ) ; final com . tinkerpop . IDENT_3 . IDENT_6 graph = ( ( com . tinkerpop . IDENT_3 . IDENT_6 ) ( IDENT_27 . METHOD_12 ( ) ) ) ; if ( null != index ) { final java . lang . String msg = ( ( ( STRING_7 + IDENT_25 ) + STRING_8 ) + IDENT_2 ) + STRING_9 ; com . tinkerpop . IDENT_0 . IDENT_1 . logger . info ( msg ) ; final org . IDENT_11 . IDENT_12 . json . JSONObject error = METHOD_7 ( msg ) ; throw new javax . ws . rs . METHOD_8 ( javax . ws . rs . core . Response . status ( Response . Status . IDENT_28 ) . entity ( error ) . build ( ) ) ; } else { if ( null != clazz ) { final java . lang . Class c ; if ( clazz . equals ( IDENT_15 . IDENT_29 ) ) c = com . tinkerpop . IDENT_3 . IDENT_8 . class ; else if ( clazz . equals ( IDENT_15 . IDENT_30 ) ) c = com . tinkerpop . IDENT_3 . IDENT_31 . class ; else { final org . IDENT_11 . IDENT_12 . json . JSONObject error = METHOD_7 ( STRING_10 ) ; throw new javax . ws . rs . METHOD_8 ( javax . ws . rs . core . Response . status ( Response . Status . IDENT_20 ) . entity ( error ) . build ( ) ) ; } final com . tinkerpop . IDENT_3 . IDENT_4 IDENT_32 ; try { IDENT_32 = graph . METHOD_13 ( IDENT_25 , c , IDENT_10 ) ; IDENT_27 . METHOD_14 ( ) ; } catch ( java . lang . Exception e ) { com . tinkerpop . IDENT_0 . IDENT_1 . logger . info ( e . getMessage ( ) ) ; IDENT_27 . METHOD_15 ( ) ; final org . IDENT_11 . IDENT_12 . json . JSONObject error = METHOD_7 ( e . getMessage ( ) ) ; throw new javax . ws . rs . METHOD_8 ( javax . ws . rs . core . Response . status ( Response . Status . IDENT_20 ) . entity ( error ) . build ( ) ) ; } try { this . IDENT_33 . put ( IDENT_15 . IDENT_34 , this . IDENT_35 . METHOD_16 ( ) ) ; this . IDENT_33 . put ( IDENT_15 . IDENT_36 , com . tinkerpop . IDENT_0 . IDENT_1 . METHOD_17 ( IDENT_32 ) ) ; } catch ( org . IDENT_11 . IDENT_12 . json . IDENT_37 ex ) { com . tinkerpop . IDENT_0 . IDENT_1 . logger . error ( ex ) ; final org . IDENT_11 . IDENT_12 . json . JSONObject error = METHOD_18 ( ex ) ; throw new javax . ws . rs . METHOD_8 ( javax . ws . rs . core . Response . status ( Response . Status . IDENT_28 ) . entity ( error ) . build ( ) ) ; } } else { final java . lang . String msg = STRING_11 ; com . tinkerpop . IDENT_0 . IDENT_1 . logger . info ( msg ) ; final org . IDENT_11 . IDENT_12 . json . JSONObject error = METHOD_7 ( msg ) ; throw new javax . ws . rs . METHOD_8 ( javax . ws . rs . core . Response . status ( Response . Status . IDENT_20 ) . entity ( error ) . build ( ) ) ; } } return javax . ws . rs . core . Response . METHOD_19 ( this . IDENT_33 ) . build ( ) ; }
org . junit . Assert . assertNotNull ( IDENT_5 )