code: function checkArgs() {
    if (arguments.length === 0) {
      throw new Error('no argument for executing resource service');
    }
  
    var args = arguments[0];
    if (args.name === void 0) {
      throw new Error('no name for executing resource service');
    }
  
    return args;
  }
docs: Provides functions to execute resource services on the REST server
  for the client. The resource service extensions must have been
  installed previously on the REST server using the
  {@link config.resources#write} function.
  @namespace resources
   @ignore