this method can throw NPE since the ```RpcManager``` is null when it is used in ```LOCAL``` mode.