deprecate getHandler in favor of createStaticHandler