Use `Callable<SecurityContext>` and you can save yourself some casts later on.