isDiscard attribute in as a function param in StaticRouteHelper