METHOD_0 ( ) { java . lang . String id = org . nuxeo . IDENT_0 . IDENT_1 . METHOD_1 ( "/" , STRING_0 , STRING_1 , java . util . Collections . METHOD_2 ( STRING_2 , STRING_3 ) ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( org . nuxeo . ecm . core . api . IDENT_2 , java . lang . String , java . lang . String , java . lang . String , java . util . Map ) { values = METHOD_3 ( values ) ; org . nuxeo . ecm . core . api . IDENT_3 doc = session . METHOD_4 ( IDENT_4 , name , type ) ; if ( values . containsKey ( IDENT_5 . IDENT_6 ) ) { doc . METHOD_5 ( org . nuxeo . ecm . IDENT_7 . core . IDENT_8 , values . get ( IDENT_5 . IDENT_6 ) ) ; values . remove ( IDENT_5 . IDENT_6 ) ; } if ( IDENT_9 . IDENT_10 . equals ( IDENT_11 . IDENT_12 ) ) { if ( values . containsKey ( IDENT_5 . IDENT_13 ) ) { ( ( org . nuxeo . ecm . core . api . impl . IDENT_14 ) ( doc ) ) . setId ( ( ( java . lang . String ) ( values . get ( IDENT_5 . IDENT_13 ) ) ) ) ; values . remove ( IDENT_5 . IDENT_13 ) ; } else { ( ( org . nuxeo . ecm . core . api . impl . IDENT_14 ) ( doc ) ) . setId ( java . util . UUID . METHOD_6 ( ) . toString ( ) ) ; } for ( Map . Entry < java . lang . String , java . io . IDENT_15 > entry : values . entrySet ( ) ) { doc . METHOD_7 ( entry . getKey ( ) , entry . getValue ( ) ) ; } session . METHOD_8 ( java . util . Collections . singletonList ( doc ) ) ; } else { if ( values . containsKey ( IDENT_5 . IDENT_13 ) ) { throw new org . nuxeo . ecm . core . api . METHOD_9 ( STRING_4 ) ; } for ( Map . Entry < java . lang . String , java . io . IDENT_15 > entry : values . entrySet ( ) ) { doc . METHOD_7 ( entry . getKey ( ) , entry . getValue ( ) ) ; } session . METHOD_1 ( doc ) ; } }
org . junit . Assert . assertNotNull ( id )