code: private static String readPrimitiveArrayValue(String ref, TypeDef source, Property property)  {
          StringBuilder sb = new StringBuilder();
          Method getter = getterOf(source, property);
          sb.append(indent(ref))
                  .append("Arrays.stream(")
                  .append("("+property.getTypeRef().toString()+")(" + ref + " instanceof Map ? ((Map)" + ref + ").getOrDefault(\"" + getterOf(source, property).getName() + "\" , " + getDefaultValue(property)+") : "+ getDefaultValue(property)+")")
              .append(".toArray(size -> new "+getter.getReturnType().toString()+"[size])");
          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.