code: public void writeOutParamsToStub(VariableElement param, ParamType paramType, String paramName, MethodSpec.Builder methodBuilder) {
          if (paramType != ParamType.IN) {
              methodBuilder.addStatement("int " + paramName + "_length = data.readInt()");
              methodBuilder.beginControlFlow("if (" + paramName + "_length < 0 )");
              methodBuilder.addStatement(paramName + " = null");
              methodBuilder.endControlFlow();
              methodBuilder.beginControlFlow("else");
              methodBuilder.addStatement(paramName + " = new " + (((ArrayType) param.asType()).getComponentType().toString())
                      + "[" + paramName + "_length]");
              methodBuilder.endControlFlow();
          }
      }
docs: Called to generate code to write @{@link remoter.annotations.ParamOut} params for stub