public boolean isWriteable(
     Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
   System.out.println(
       "OperationResultMessageBodyWriter$App.isWriteable, type = "
           + type
           + ", media type: "
           + mediaType);
   System.out.println("provider.isSupported(mediaType) = " + provider.isSupported(mediaType));
   System.out.println(
       "provider.isSupported(mediaType) = "
           + provider.isSupported(MediaType.APPLICATION_SVG_XML_TYPE));
   return OperationResult.class.isAssignableFrom(type) && provider.isSupported(mediaType);
 }
    public void writeTo(
        OperationResult operationResult,
        Class<?> type,
        Type genericType,
        Annotation[] annotations,
        MediaType mediaType,
        MultivaluedMap<String, Object> httpHeaders,
        OutputStream entityStream)
        throws IOException, WebApplicationException {
      Object value = ((OperationResult) operationResult).value();
      type = value.getClass();
      genericType = value.getClass();

      System.out.println("value = " + value);
      System.out.println("value.getClass() = " + value.getClass());

      System.out.println("type = " + type);

      System.out.println("genericType = " + genericType);

      System.out.println("annotations.length = " + annotations.length);
      for (Annotation annotation : annotations) {
        System.out.println("annotation = " + annotation);
      }

      System.out.println("mediaType = " + mediaType);

      provider.writeTo(value, type, genericType, annotations, mediaType, httpHeaders, entityStream);
    }