Ensured typesafety in the HandlerContext