public Type getType ( JavaType type ) { if ( type instanceof SimpleType ) { return getType ( ( SimpleType ) type ) ; } else if ( type instanceof CollectionType ) { return getType ( ( CollectionLikeType ) type ) ; } else if ( type instanceof ArrayType ) { return getType ( ( ArrayType ) type ) ; } else if ( type instanceof MapLikeType ) { return getType ( ( MapLikeType ) type ) ; } throw new RuntimeException ( "Unimplemented Jackson type: " + type ) ; }
Do redirection from general Jackson type to the concrete one