public void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
        if (RePluginFramework.mHostInitialized) {
            try {
                ProxyLocalBroadcastManagerVar.registerReceiver.call(sOrigInstance, receiver, filter);
            } catch (Exception e) {
                e.printStackTrace();
            }
            return;
        }
        synchronized (mReceivers) {
            ReceiverRecord entry = new ReceiverRecord(filter, receiver);
            ArrayList<IntentFilter> filters = mReceivers.get(receiver);
            if (filters == null) {
                filters = new ArrayList<IntentFilter>(1);
                mReceivers.put(receiver, filters);
            }
            filters.add(filter);
            for (int i=0; i<filter.countActions(); i++) {
                String action = filter.getAction(i);
                ArrayList<ReceiverRecord> entries = mActions.get(action);
                if (entries == null) {
                    entries = new ArrayList<ReceiverRecord>(1);
                    mActions.put(action, entries);
                }
                entries.add(entry);
            }
        }
    }
Register a receive for any local broadcasts that match the given IntentFilter.

@param receiver The BroadcastReceiver to handle the broadcast.
@param filter Selects the Intent broadcasts to be received.

@see #unregisterReceiver
replugin-plugin-library/replugin-plugin-lib/src/main/java/com/qihoo360/replugin/loader/b/PluginLocalBroadcastManager.java