code: public static void writeObjectInstanceOutput(final RESTResponse response, final ObjectInstanceWrapper value, final JSONConverter converter) {
          response.setContentType(APIConstants.MEDIA_TYPE_APPLICATION_JSON);
  
          OutputStream outStream = null;
          try {
              outStream = response.getOutputStream();
  
              //Converter the value
              converter.writeObjectInstance(outStream, value);
  
              //Return converter
              JSONConverter.returnConverter(converter);
  
              outStream.flush();
          } catch (Exception e) {
              throw ErrorHelper.createRESTHandlerJsonException(e, converter, APIConstants.STATUS_INTERNAL_SERVER_ERROR);
          } finally {
              FileUtils.tryToClose(outStream);
          }
      }
docs: Write ObjectInstanceWrapper to the response