Will require some reflection dark magic to get at generic type. I know it's possible because jackson-datatype-jdk8 does it.