code: private static String convertReference(String ref, TypeDef source, TypeDef target, TypeDef targetBuilder) {
          StringBuilder sb = new StringBuilder();
          sb.append("new ").append(targetBuilder.getName()).append("(").append(convertReference(ref,source,target)).append(")");
          return sb.toString();
      }
docs: Converts a reference from the source type, to the target type by using the builder.
  @param ref               The ref.
  @param source            The source type of the reference..
  @param target            The target type.
  @param targetBuilder     The target type builder.
  @return