METHOD_0 ( ) { final org . apache . rya . indexing . entity . model . Entity entity = org . apache . rya . indexing . entity . model . Entity . builder ( ) . METHOD_1 ( new org . apache . rya . api . domain . METHOD_2 ( STRING_0 0 ) ) . METHOD_3 ( new org . apache . rya . api . domain . METHOD_2 ( STRING_0 ) ) . setProperty ( new org . apache . rya . api . domain . METHOD_2 ( STRING_0 ) , new org . apache . rya . indexing . entity . model . METHOD_4 ( new org . apache . rya . api . domain . METHOD_2 ( STRING_1 ) , new org . apache . rya . api . domain . METHOD_5 ( org . eclipse . IDENT_0 . model . IDENT_1 . IDENT_2 . IDENT_3 , STRING_2 ) ) ) . setProperty ( new org . apache . rya . api . domain . METHOD_2 ( STRING_0 ) , new org . apache . rya . indexing . entity . model . METHOD_4 ( new org . apache . rya . api . domain . METHOD_2 ( STRING_3 ) , new org . apache . rya . api . domain . METHOD_5 ( STRING_4 ) ) ) . setProperty ( new org . apache . rya . api . domain . METHOD_2 ( STRING_5 ) , new org . apache . rya . indexing . entity . model . METHOD_4 ( new org . apache . rya . api . domain . METHOD_2 ( STRING_6 ) , new org . apache . rya . api . domain . METHOD_5 ( org . eclipse . IDENT_0 . model . IDENT_1 . IDENT_2 . IDENT_3 , STRING_7 ) ) ) . setProperty ( new org . apache . rya . api . domain . METHOD_2 ( STRING_5 ) , new org . apache . rya . indexing . entity . model . METHOD_4 ( new org . apache . rya . api . domain . METHOD_2 ( STRING_8 ) , new org . apache . rya . api . domain . METHOD_5 ( STRING_9 ) ) ) . build ( ) ; final org . bson . Document document = new org . apache . rya . indexing . entity . storage . IDENT_4 . METHOD_6 ( ) . METHOD_7 ( entity ) ; final org . apache . rya . indexing . entity . model . Entity IDENT_5 = new org . apache . rya . indexing . entity . storage . IDENT_4 . METHOD_6 ( ) . METHOD_8 ( document ) ; "<AssertPlaceHolder>" ; } METHOD_8 ( org . bson . Document ) { METHOD_9 ( document ) ; final boolean IDENT_6 ; if ( ! ( document . containsKey ( org . apache . rya . indexing . IDENT_7 . IDENT_4 . IDENT_8 . IDENT_9 ) ) ) { throw new org . apache . rya . indexing . IDENT_7 . IDENT_4 . METHOD_10 ( ( ( ( ( STRING_10 + document ) + STRING_11 ) + ( org . apache . rya . indexing . IDENT_7 . IDENT_4 . IDENT_8 . IDENT_9 ) ) + STRING_12 ) ) ; } if ( document . containsKey ( org . apache . rya . indexing . IDENT_7 . IDENT_4 . IDENT_8 . IDENT_10 ) ) { IDENT_6 = true ; } else { IDENT_6 = false ; } final java . lang . String subject = document . getString ( org . apache . rya . indexing . IDENT_7 . IDENT_4 . IDENT_8 . IDENT_9 ) ; final org . apache . rya . indexing . IDENT_7 . model . IDENT_11 . Builder builder = new org . apache . rya . indexing . IDENT_7 . model . IDENT_11 . Builder ( ) . METHOD_1 ( new org . apache . rya . api . domain . METHOD_2 ( subject ) ) ; if ( document . containsKey ( org . apache . rya . indexing . IDENT_7 . IDENT_4 . IDENT_8 . IDENT_12 ) ) { final org . bson . Document IDENT_13 = ( ( org . bson . Document ) ( document . get ( org . apache . rya . indexing . IDENT_7 . IDENT_4 . IDENT_8 . IDENT_12 ) ) ) ; final com . IDENT_14 . jts . geom . IDENT_15 IDENT_16 = new com . IDENT_14 . jts . geom . METHOD_11 ( ) ; final java . lang . String IDENT_17 = ( ( java . lang . String ) ( IDENT_13 . get ( STRING_13 ) ) ) ; final com . IDENT_14 . jts . geom . IDENT_18 IDENT_19 = new com . IDENT_14 . jts . geom . METHOD_12 ( ) ; final com . IDENT_14 . jts . geom . IDENT_20 IDENT_21 ; if ( IDENT_17 . equals ( STRING_14 ) ) { final java . util . List < java . lang . Double > IDENT_22 = ( ( java . util . List < java . lang . Double > ) ( IDENT_13 . get ( STRING_15 ) ) ) ; final com . IDENT_14 . jts . geom . IDENT_23 IDENT_24 = new com . IDENT_14 . jts . geom . METHOD_13 ( IDENT_22 . get ( 0 ) , IDENT_22 . get ( 1 ) ) ; IDENT_21 = IDENT_16 . METHOD_14 ( IDENT_24 ) ; } else if ( IDENT_17 . equals ( STRING_16 ) ) { final java . util . List < java . util . List < java . lang . Double > > IDENT_25 = ( ( java . util . List < java . util . List < java . lang . Double > > ) ( IDENT_13 . get ( STRING_15 ) ) ) ; for ( final java . util . List < java . lang . Double > IDENT_22 : IDENT_25 ) { IDENT_19 . add ( new com . IDENT_14 . jts . geom . METHOD_13 ( IDENT_22 . get ( 0 ) , IDENT_22 . get ( 1 ) ) ) ; } IDENT_21 = IDENT_16 . METHOD_15 ( IDENT_19 . METHOD_16 ( ) ) ; } else { final java . util . List < java . util . List < java . util . List < java . lang . Double > > > IDENT_25 = ( ( java . util . List < java . util . List < java . util . List < java . lang . Double > > > ) ( IDENT_13 . get ( STRING_15 ) ) ) ; if ( ( IDENT_25 . size ( ) ) == 1 ) { final java . util . List < java . util . List < java . lang . Double > > IDENT_26 = IDENT_25 . get ( 0 ) ; for ( final java . util . List < java . lang . Double > IDENT_22 : IDENT_26 ) { IDENT_19 . add ( new com . IDENT_14 . jts . geom . METHOD_13 ( IDENT_22 . get ( 0 ) , IDENT_22 . get ( 1 ) ) ) ; } IDENT_21 = IDENT_16 . METHOD_17 ( IDENT_19 . METHOD_16 ( ) ) ; } else { final java . util . List < java . util . List < java . lang . Double > > first = IDENT_25 . get ( 0 ) ; final com . IDENT_14 . jts . geom . METHOD_12 IDENT_27 = new com . IDENT_14 . jts . geom . METHOD_12 ( ) ; for ( final java . util . List < java . lang . Double > IDENT_22 : IDENT_25 . get ( 0 ) ) { IDENT_27 . add ( new com . IDENT_14 . jts . geom . METHOD_13 ( IDENT_22 . get ( 0 ) , IDENT_22 . get ( 1 ) ) ) ; } final com . IDENT_14 . jts . geom . IDENT_28 shell = IDENT_16 . METHOD_18 ( IDENT_27 . METHOD_16 ( ) ) ; final java . util . List < java . util . List < java . util . List < java . lang . Double > > > IDENT_29 = IDENT_25 . METHOD_19 ( 1 , ( ( IDENT_25 . size ( ) ) - 1 ) ) ; final com . IDENT_14 . jts . geom . IDENT_28 [ ] IDENT_30 = new com . IDENT_14 . jts . geom . IDENT_28 [ IDENT_29 . size ( ) ] ; for ( int IDENT_31 = 0 ; IDENT_31 < ( IDENT_30 . length ) ; IDENT_31 ++ ) { final java . util . List < java . util . List < java . lang . Double > > IDENT_32 = IDENT_29 . get ( IDENT_31 ) ; final com . IDENT_14 . jts . geom . METHOD_12 IDENT_33 = new com . IDENT_14 . jts . geom . METHOD_12 ( ) ; for ( final java . util . List < java . lang . Double > IDENT_22 : IDENT_25 . get ( 0 ) ) { IDENT_33 . add ( new com . IDENT_14 . jts . geom . METHOD_13 ( IDENT_22 . get ( 0 ) , IDENT_22 . get ( 1 ) ) ) ; } IDENT_30 [ IDENT_31 ] = IDENT_16 . METHOD_18 ( IDENT_33 . METHOD_16 ( ) ) ; } IDENT_21 = IDENT_16 . METHOD_17 ( shell , IDENT_30 ) ; } } builder . METHOD_20 ( IDENT_21 ) ; } if ( IDENT_6 ) { final java . util . Date date = ( ( java . util . Date ) ( document . get ( org . apache . rya . indexing . IDENT_7 . IDENT_4 . IDENT_8 . IDENT_10 ) ) ) ; final org . joda . time . IDENT_34 IDENT_35 = new org . joda . time . METHOD_21 ( date . getTime ( ) ) ; final org . apache . rya . indexing . IDENT_36 IDENT_37 = new org . apache . rya . indexing . METHOD_22 ( IDENT_35 ) ; builder . METHOD_23 ( IDENT_37 ) ; } else if ( document . containsKey ( org . apache . rya . indexing . IDENT_7 . IDENT_4 . IDENT_8 . IDENT_38 ) ) { java . util . Date date = ( ( java . util . Date ) ( document . get ( org . apache . rya . indexing . IDENT_7 . IDENT_4 . IDENT_8 . IDENT_38 ) ) ) ; org . joda . time . METHOD_21 IDENT_35 = new org . joda . time . METHOD_21 ( date . getTime ( ) ) ; final org . apache . rya . indexing . IDENT_36 IDENT_39 = new org . apache . rya . indexing . METHOD_22 ( IDENT_35 ) ; date = ( ( java . util . Date ) ( document . get ( org . apache . rya . indexing . IDENT_7 . IDENT_4 . IDENT_8 . IDENT_40 ) ) ) ; IDENT_35 = new org . joda . time . METHOD_21 ( date . getTime ( ) ) ; final org . apache . rya . indexing . IDENT_36 end = new org . apache . rya . indexing . METHOD_22 ( IDENT_35 ) ; final org . apache . rya . indexing . IDENT_41 IDENT_42 = new org . apache . rya . indexing . METHOD_24 ( IDENT_39 , end ) ; builder . METHOD_25 ( IDENT_42 ) ; } return builder . build ( ) ; }
org . junit . Assert . assertEquals ( entity , IDENT_5 )