If FooHandler extends AzureSpringBootRequestHandler apparently Azure cannot extract the generic types Foo and Bar.