code: private Type wrap(Type type) {
          if (type.equals(Types.BOOLEAN_P)) {
              return Types.BOOLEAN;
          } else if (type.equals(Types.BYTE_P)) {
              return Types.BYTE;
          } else if (type.equals(Types.CHAR)) {
              return Types.CHARACTER;
          } else if (type.equals(Types.DOUBLE_P)) {
              return Types.DOUBLE;
          } else if (type.equals(Types.FLOAT_P)) {
              return Types.FLOAT;
          } else if (type.equals(Types.INT)) {
              return Types.INTEGER;
          } else if (type.equals(Types.LONG_P)) {
              return Types.LONG;
          } else if (type.equals(Types.SHORT_P)) {
              return Types.SHORT;
          } else {
              return type;
          }
      }
docs: TODO move this to codegen