code: @SuppressWarnings("unchecked")
  	public static <D, J> D toData(Class<? extends TypeAdapter<J, D>> clazz, J javaValue) {
  		TypeAdapter<J, D> adapter = cache.get(clazz);
  
  		if (adapter == null) {
  			adapter = generateAdapter(cache, lock, clazz);
  		}
  
  		return adapter.toData(javaValue);
  	}
docs: To data.
  
  @param <D> the generic type
  @param <J> the generic type
  @param clazz the clazz
  @param javaValue the java value
  @return the d