code: func (ctx *Context) GetResource() (Resource, error) {
  	if ctx.Resource == nil {
  		return nil, trace.NotFound("resource is not set in the context")
  	}
  	return ctx.Resource, nil
  }
docs: // GetResource returns resource specified in the context,
  // returns error if not specified.