private void beforeCall(String command) {
    if (remoteClientCall == null) {
      throw new IllegalStateException("RemoteClientConnection is not initial.");
    }
    if (command == null) {
      throw new IllegalArgumentException("aMethodName is null");
    }
  }