public static synchronized WonderPushChannel getChannel ( String channelId ) { try { WonderPushChannel rtn = sChannels . get ( channelId ) ; if ( rtn != null ) { try { rtn = ( WonderPushChannel ) rtn . clone ( ) ; } catch ( CloneNotSupportedException ex ) { Log . e ( WonderPush . TAG , "Unexpected error while cloning gotten channel " + rtn , ex ) ; return null ; } } return rtn ; } catch ( Exception ex ) { Log . e ( WonderPush . TAG , "Unexpected error while getting channel " + channelId , ex ) ; return null ; } }
Get a channel .