code: private static String readPrimitiveArrayProperty(String ref, TypeDef source, Property property)  {
          StringBuilder sb = new StringBuilder();
          Method getter = getterOf(source, property);
          sb.append("Arrays.asList(")
              .append(ref).append(".").append(getter.getName()).append("())")
              .append(".stream()").append(".collect(Collectors.toList())).toArray(new "+getter.getReturnType().toString()+"[])");
          return sb.toString();
      }
docs: Returns the string representation of the code that reads a primitive array property.
  @param ref           The reference.
  @param source        The type of the reference.
  @param property      The property to read.
  @return              The code.