code: function genServiceMethod(method) {
          return function (req) {
              return ajax.send(method.url, method.httpMethod, req, method.resourceName);
          };
      }
docs: Generate a service method
  @param method
  @returns {Function}