const Resource = function (basePath) {
  if (typeof basePath !== 'string') {
    throw new $err.IllegalValue(
      '@Resource must be used with a basePath, as in @Resource(\'/route/base/path\')');
  }