METHOD_0 ( ) { final com . tinkerpop . IDENT_0 . IDENT_1 resource = METHOD_1 ( ) . getResource ( ) ; resource . METHOD_2 ( IDENT_2 , STRING_0 ) ; final com . tinkerpop . IDENT_3 . IDENT_4 < com . tinkerpop . IDENT_3 . IDENT_5 > IDENT_6 = ( ( com . tinkerpop . IDENT_3 . IDENT_7 ) ( this . IDENT_8 ) ) . METHOD_3 ( STRING_0 , com . tinkerpop . IDENT_3 . IDENT_5 . class ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , java . lang . String ) { java . lang . String key = null ; java . lang . Object value = null ; java . lang . String id = null ; final org . IDENT_9 . IDENT_10 . json . JSONObject IDENT_11 = this . METHOD_4 ( ) ; java . lang . Object IDENT_12 = IDENT_11 . METHOD_5 ( IDENT_13 . IDENT_14 ) ; if ( null != IDENT_12 ) key = IDENT_12 . toString ( ) ; IDENT_12 = IDENT_11 . METHOD_5 ( IDENT_13 . IDENT_15 ) ; if ( null != IDENT_12 ) value = com . tinkerpop . IDENT_0 . util . IDENT_16 . METHOD_6 ( IDENT_12 . toString ( ) ) ; IDENT_12 = IDENT_11 . METHOD_5 ( IDENT_13 . IDENT_17 ) ; if ( null != IDENT_12 ) id = IDENT_12 . toString ( ) ; final com . tinkerpop . IDENT_3 . IDENT_4 index = this . METHOD_7 ( IDENT_2 , IDENT_18 ) ; final com . tinkerpop . IDENT_0 . IDENT_19 IDENT_20 = this . METHOD_8 ( IDENT_2 ) ; final com . tinkerpop . IDENT_3 . IDENT_7 graph = ( ( com . tinkerpop . IDENT_3 . IDENT_7 ) ( IDENT_20 . METHOD_9 ( ) ) ) ; if ( null == index ) { final java . lang . String msg = ( ( ( STRING_1 + IDENT_18 ) + STRING_2 ) + IDENT_2 ) + "]" ; com . tinkerpop . IDENT_0 . IDENT_1 . logger . info ( msg ) ; final org . IDENT_9 . IDENT_10 . json . JSONObject error = METHOD_10 ( msg ) ; throw new javax . ws . rs . METHOD_11 ( javax . ws . rs . core . Response . status ( Response . Status . IDENT_21 ) . entity ( error ) . build ( ) ) ; } if ( ( ( key == null ) && ( value == null ) ) && ( id == null ) ) { try { graph . METHOD_12 ( IDENT_18 ) ; IDENT_20 . METHOD_13 ( ) ; } catch ( java . lang . Exception ex ) { com . tinkerpop . IDENT_0 . IDENT_1 . logger . error ( ex ) ; IDENT_20 . METHOD_14 ( ) ; final org . IDENT_9 . IDENT_10 . json . JSONObject error = METHOD_15 ( ex ) ; throw new javax . ws . rs . METHOD_11 ( javax . ws . rs . core . Response . status ( Response . Status . IDENT_22 ) . entity ( error ) . build ( ) ) ; } } else if ( ( ( ( null != index ) & ( key != null ) ) && ( value != null ) ) && ( id != null ) ) { try { if ( index . METHOD_16 ( ) . equals ( com . tinkerpop . IDENT_3 . IDENT_5 . class ) ) index . remove ( key , value , graph . METHOD_17 ( id ) ) ; else index . remove ( key , value , graph . METHOD_18 ( id ) ) ; IDENT_20 . METHOD_13 ( ) ; this . IDENT_23 . put ( IDENT_13 . IDENT_24 , this . IDENT_25 . METHOD_19 ( ) ) ; } catch ( org . IDENT_9 . IDENT_10 . json . IDENT_26 ex ) { com . tinkerpop . IDENT_0 . IDENT_1 . logger . error ( ex ) ; IDENT_20 . METHOD_14 ( ) ; final org . IDENT_9 . IDENT_10 . json . JSONObject error = METHOD_15 ( ex ) ; throw new javax . ws . rs . METHOD_11 ( javax . ws . rs . core . Response . status ( Response . Status . IDENT_22 ) . entity ( error ) . build ( ) ) ; } } else { final java . lang . String msg = STRING_3 ; com . tinkerpop . IDENT_0 . IDENT_1 . logger . info ( msg ) ; final org . IDENT_9 . IDENT_10 . json . JSONObject error = METHOD_10 ( msg ) ; throw new javax . ws . rs . METHOD_11 ( javax . ws . rs . core . Response . status ( Response . Status . IDENT_27 ) . entity ( error ) . build ( ) ) ; } return javax . ws . rs . core . Response . METHOD_20 ( this . IDENT_23 ) . build ( ) ; }
org . junit . Assert . assertNull ( IDENT_6 )