METHOD_0 ( ) { org . osgi . framework . IDENT_0 IDENT_1 = METHOD_1 ( METHOD_2 ( ) ) ; try { IDENT_1 . start ( ) ; final java . util . concurrent . IDENT_2 IDENT_3 = new java . util . concurrent . METHOD_3 ( 1 ) ; org . osgi . framework . IDENT_4 listener = new org . osgi . framework . METHOD_4 ( ) { public void METHOD_5 ( org . osgi . framework . IDENT_5 event ) { IDENT_3 . METHOD_6 ( ) ; } } ; org . osgi . framework . IDENT_6 context = IDENT_1 . METHOD_7 ( ) ; context . METHOD_8 ( listener ) ; java . lang . Object service = IDENT_1 . METHOD_9 ( org . jboss . test . osgi . framework . service . support . a . IDENT_7 . class . getName ( ) ) . newInstance ( ) ; org . osgi . framework . IDENT_8 IDENT_9 = context . METHOD_10 ( org . jboss . test . osgi . framework . service . support . a . IDENT_7 . class . getName ( ) , service , null ) ; org . osgi . framework . IDENT_10 ref = IDENT_9 . METHOD_11 ( ) ; "<AssertPlaceHolder>" ; if ( ( IDENT_3 . METHOD_12 ( 5 , TimeUnit . IDENT_11 ) ) == false ) throw new java . util . concurrent . METHOD_13 ( ) ; } finally { IDENT_1 . METHOD_14 ( ) ; } } METHOD_15 ( org . osgi . framework . IDENT_0 , java . lang . String ) { if ( IDENT_1 == null ) throw org . jboss . osgi . framework . IDENT_12 . IDENT_13 . METHOD_16 ( STRING_0 ) ; if ( IDENT_14 == null ) throw org . jboss . osgi . framework . IDENT_12 . IDENT_13 . METHOD_16 ( STRING_1 ) ; if ( ( IDENT_1 == ( IDENT_15 ) ) || ( IDENT_14 . startsWith ( STRING_2 ) ) ) return true ; int IDENT_16 = IDENT_1 . METHOD_17 ( ) ; if ( IDENT_16 == ( org . osgi . framework . IDENT_0 . IDENT_17 ) ) return false ; org . jboss . osgi . resolver . IDENT_18 IDENT_19 = ( ( org . jboss . osgi . resolver . IDENT_20 ) ( IDENT_1 ) ) . METHOD_18 ( ) ; java . lang . IDENT_21 IDENT_22 = IDENT_19 . METHOD_19 ( ) ; if ( IDENT_22 == null ) { org . jboss . osgi . framework . IDENT_23 . LOGGER . METHOD_20 ( STRING_3 , IDENT_1 , org . jboss . osgi . spi . IDENT_24 . METHOD_21 ( METHOD_21 ) , IDENT_14 ) ; return false ; } org . jboss . osgi . framework . internal . IDENT_25 IDENT_26 = null ; if ( IDENT_19 instanceof org . jboss . osgi . framework . internal . IDENT_27 ) { IDENT_26 = ( ( org . jboss . osgi . framework . internal . IDENT_27 ) ( IDENT_19 ) ) . METHOD_22 ( ) ; } java . lang . Class < ? > IDENT_28 ; try { if ( IDENT_26 != null ) { try { IDENT_26 . METHOD_23 ( ) ; IDENT_26 . METHOD_24 ( false ) ; IDENT_28 = IDENT_22 . METHOD_9 ( IDENT_14 ) ; } finally { IDENT_26 . METHOD_24 ( true ) ; IDENT_26 . METHOD_25 ( ) ; } } else { IDENT_28 = IDENT_22 . METHOD_9 ( IDENT_14 ) ; } } catch ( java . lang . IDENT_29 ex ) { org . jboss . osgi . framework . IDENT_23 . LOGGER . METHOD_26 ( STRING_4 , IDENT_1 , IDENT_14 ) ; return true ; } org . jboss . osgi . resolver . IDENT_18 IDENT_30 = IDENT_15 . METHOD_18 ( ) ; java . lang . IDENT_21 IDENT_31 = IDENT_30 . METHOD_19 ( ) ; if ( IDENT_31 == null ) { org . jboss . osgi . framework . IDENT_23 . LOGGER . METHOD_26 ( STRING_5 , IDENT_15 , IDENT_14 ) ; return true ; } java . lang . Class < ? > IDENT_32 ; try { IDENT_32 = IDENT_31 . METHOD_9 ( IDENT_14 ) ; } catch ( java . lang . IDENT_29 e ) { org . jboss . osgi . framework . IDENT_23 . LOGGER . METHOD_26 ( STRING_6 , IDENT_15 , IDENT_14 ) ; return true ; } if ( IDENT_28 != IDENT_32 ) { org . jboss . osgi . framework . IDENT_23 . LOGGER . METHOD_26 ( STRING_7 , IDENT_14 ) ; return false ; } return true ; }
org . junit . Assert . assertTrue ( ref . METHOD_15 ( IDENT_1 , org . jboss . test . osgi . framework . service . support . a . IDENT_7 . class . getName ( ) ) )