code: function(app, opts) {
    opts.paths = getRemotePaths(app);
    opts.context = app;
    if(!!opts.rpcServer) {
      return opts.rpcServer.create(opts);
    } else {
      return RemoteServer.create(opts);
    }
  }
docs: Generate remote server instance
  
  @param {Object} app current application context
  @param {Object} opts contructor parameters for rpc Server
  @return {Object} remote server instance