METHOD_0 ( ) { org . apache . IDENT_0 . persistence . entities . IDENT_1 application = org . apache . IDENT_0 . security . IDENT_2 . IDENT_3 . IDENT_4 . METHOD_1 ( ) . METHOD_2 ( org . apache . IDENT_0 . security . IDENT_2 . IDENT_3 . IDENT_5 ) . METHOD_3 ( ) ; java . util . Map IDENT_6 = org . apache . IDENT_0 . utils . IDENT_7 . METHOD_4 ( STRING_0 , STRING_1 ) . map ( "name" , STRING_2 ) . map ( STRING_3 , STRING_4 ) ; org . apache . IDENT_0 . security . IDENT_2 . IDENT_8 IDENT_9 = ( ( org . apache . IDENT_0 . security . IDENT_2 . IDENT_8 ) ( org . apache . IDENT_0 . security . IDENT_2 . IDENT_3 . IDENT_10 . facebook ( application ) ) ) ; java . lang . String IDENT_11 = STRING_5 ; org . apache . IDENT_0 . persistence . entities . User IDENT_12 = IDENT_9 . METHOD_5 ( IDENT_11 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . lang . String ) { java . util . Map < java . lang . String , java . lang . Object > IDENT_6 = METHOD_6 ( IDENT_13 ) ; java . lang . String IDENT_14 = ( ( java . lang . String ) ( IDENT_6 . get ( STRING_6 2 ) ) ) ; java . lang . String IDENT_15 = ( ( java . lang . String ) ( IDENT_6 . get ( STRING_6 4 ) ) ) ; java . lang . String IDENT_16 = ( ( java . lang . String ) ( IDENT_6 . get ( STRING_3 ) ) ) ; java . lang . String IDENT_17 = ( ( java . lang . String ) ( IDENT_6 . get ( STRING_6 7 ) ) ) ; if ( org . apache . IDENT_0 . security . IDENT_2 . IDENT_8 . logger . METHOD_7 ( ) ) { org . apache . IDENT_0 . security . IDENT_2 . IDENT_8 . logger . debug ( STRING_7 , org . apache . IDENT_0 . utils . IDENT_18 . METHOD_8 ( IDENT_6 ) ) ; } org . apache . IDENT_0 . persistence . entities . User user = null ; if ( ( IDENT_6 != null ) && ( ! ( METHOD_9 ( IDENT_14 , IDENT_15 ) ) ) ) { org . apache . IDENT_0 . persistence . IDENT_19 r = null ; try { final org . apache . IDENT_0 . persistence . Query query = org . apache . IDENT_0 . persistence . Query . METHOD_10 ( STRING_6 5 , IDENT_14 ) ; r = IDENT_20 . METHOD_11 ( IDENT_20 . METHOD_12 ( ) , STRING_6 9 , query ) ; } catch ( java . lang . Exception ex ) { throw new org . apache . IDENT_0 . security . tokens . exceptions . METHOD_13 ( STRING_6 6 , ex ) ; } if ( ( r . size ( ) ) > 1 ) { org . apache . IDENT_0 . security . IDENT_2 . IDENT_8 . logger . error ( STRING_6 3 , IDENT_14 ) ; throw new org . apache . IDENT_0 . security . tokens . exceptions . METHOD_13 ( STRING_8 ) ; } if ( ( r . size ( ) ) < 1 ) { java . util . Map < java . lang . String , java . lang . Object > properties = new java . util . IDENT_21 < java . lang . String , java . lang . Object > ( ) ; properties . put ( STRING_9 , IDENT_6 ) ; properties . put ( STRING_3 , ( STRING_6 + IDENT_14 ) ) ; properties . put ( STRING_6 4 , IDENT_15 ) ; properties . put ( STRING_6 0 , java . lang . String . format ( IDENT_22 , IDENT_14 ) ) ; if ( IDENT_17 != null ) { try { user = IDENT_23 . METHOD_14 ( IDENT_20 . METHOD_3 ( ) . METHOD_15 ( ) , org . apache . IDENT_0 . persistence . index . query . IDENT_24 . METHOD_16 ( IDENT_17 ) ) ; } catch ( java . lang . Exception ex ) { throw new org . apache . IDENT_0 . security . tokens . exceptions . METHOD_13 ( ( STRING_10 + IDENT_17 ) , ex ) ; } if ( user != null ) { properties . remove ( STRING_3 ) ; properties . remove ( STRING_6 4 ) ; try { IDENT_20 . METHOD_17 ( user , properties ) ; } catch ( java . lang . Exception ex ) { throw new org . apache . IDENT_0 . security . tokens . exceptions . METHOD_13 ( STRING_11 , ex ) ; } user . setProperty ( org . apache . IDENT_0 . security . IDENT_2 . IDENT_25 , properties . get ( org . apache . IDENT_0 . security . IDENT_2 . IDENT_25 ) ) ; } else { properties . put ( STRING_6 7 , IDENT_17 ) ; } } if ( user == null ) { properties . put ( STRING_6 1 , true ) ; try { user = IDENT_20 . create ( STRING_12 , org . apache . IDENT_0 . persistence . entities . User . class , properties ) ; } catch ( java . lang . Exception ex ) { throw new org . apache . IDENT_0 . security . tokens . exceptions . METHOD_13 ( STRING_6 8 , ex ) ; } } } else { user = ( ( org . apache . IDENT_0 . persistence . entities . User ) ( r . METHOD_18 ( ) . METHOD_19 ( ) ) ) ; java . util . Map < java . lang . String , java . lang . Object > properties = new java . util . IDENT_21 < java . lang . String , java . lang . Object > ( ) ; properties . put ( STRING_9 , IDENT_6 ) ; properties . put ( STRING_6 0 , java . lang . String . format ( IDENT_22 , IDENT_14 ) ) ; try { IDENT_20 . METHOD_17 ( user , properties ) ; user . setProperty ( org . apache . IDENT_0 . security . IDENT_2 . IDENT_25 , properties . get ( org . apache . IDENT_0 . security . IDENT_2 . IDENT_25 ) ) ; user . setProperty ( STRING_9 , IDENT_6 ) ; user . setProperty ( STRING_6 0 , java . lang . String . format ( IDENT_22 , IDENT_14 ) ) ; } catch ( java . lang . Exception ex ) { throw new org . apache . IDENT_0 . security . tokens . exceptions . METHOD_13 ( STRING_13 , ex ) ; } } } else { throw new org . apache . IDENT_0 . security . tokens . exceptions . METHOD_13 ( STRING_14 ) ; } return user ; }
org . junit . Assert . assertNotNull ( IDENT_12 )