code: protected JavaType getJavaType(Type type, Class<?> contextClass) {
  		return (contextClass != null) ?
  				this.objectMapper.getTypeFactory().constructType(type, contextClass) :
  				this.objectMapper.constructType(type);
  	}
docs: Return the Jackson {@link JavaType} for the specified type and context class.
  <p>The default implementation returns {@link ObjectMapper#constructType(java.lang.reflect.Type)}
  or {@code ObjectMapper.getTypeFactory().constructType(type, contextClass)},
  but this can be overridden in subclasses, to allow for custom generic collection handling.
  For instance:
  <pre class="code">
  protected JavaType getJavaType(Type type) {
  if (type instanceof Class && List.class.isAssignableFrom((Class)type)) {
  return TypeFactory.collectionType(ArrayList.class, MyBean.class);
  } else {
  return super.getJavaType(type);
  }
  }
  </pre>
  @param type the type to return the java type for
  @param contextClass a context class for the target type, for example a class
  in which the target type appears in a method signature, can be {@code null}
  signature, can be {@code null}
  @return the java type