code: public static InOutParameter inout(final InParameter in) {
          return new InOutParameter() {
              public int getType() {
                  return in.getType();
              }
  
              public Object getValue() {
                  return in.getValue();
              }
          };
      }
docs: Create an inout parameter using this in parameter.
  
  @param in the InParameter of interest
  @return the resulting InOutParameter