code: public static String serialize(Method method, Object data) throws SerializationException {
  
          String result = RPC.encodeResponseForSuccess(method, data, CmsPrefetchSerializationPolicy.instance());
          result = CmsEncoder.escapeXml(result, true);
          return result;
      }
docs: Serializes the result of the given method for RPC-prefetching.<p>
  
  @param method the method
  @param data the result to serialize
  
  @return the serialized data
  
  @throws SerializationException if something goes wrong